I am developing a 2d game for iPhone by using cocos2d.
I use many small sprite (image) in my game. I want to touch two similar types of sprite(image) and then both sprite(image) will be hidden.
How can I detect touch in a specific sprite(image) ?
...
I would like to have scroll view with an image content view. The image is actually map which is much bigger than the screen. The map should be initially in the center of the scroll view, like photos in Photos app when you turn iPhone to landscape orientation.
I did not manage to have the map in the center with correct zooming and scro...
In the process of localizing my app, I have about 50 resources (mostly xibs) that need to be localized. I know how to add a localization for each file, but it's a pretty time consuming process to open the info panel and add the localization for each file.
Is there any way to select multiple files and add a localization to each of them i...
Hi
My application contains a table view with rows and sections.
When I delete the last item of a section, I delete the section. It works fine.
But, when i move the last row of a section into another section, I get an error.
Here is my code in both cases :
[categoryArray removeObjectAtIndex:indexPath.section];
[tableView deleteSections...
I was having a problem where my Dev cert didn't expand (was not linked) to my private key.
I tracked the issue down to a discrepancy in the email used to create my Dev Cert and the one keychain was auto-selecting when I installed my CSR that I created to make my Dev cert.
I verified this by examining the contents of my CSR as follows.
...
All of the examples I've seen on here and other sites involved creating a UIActivityIndicatorView and loading it with something like:
self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc]
initWithCustomView:myActivityIndicatorView
target:nil
action:nil]
autorelease];
However, tha...
I know you cannot control device volume from within your application, but I would like the device volume to be able to affect the UIScrollBar I have in my application to control volume.
I know this is possible because the Last.fm application does it, I would like to implement this behaviour.
I can find very little information on the in...
is there a possibility to read received SMS messages ?
...
Hello,
I am wondering if it is possible to change a default color of buttons in my application with a couple lines of code? It may be really boring to manually change color of each button. Especially if you have lots of them.
For example, I want all of my buttons to be orange instead of original white.
Thank you in advance,
Ilya.
...
Are there any repositories around for open sourced iPhone and iPad components?
For instance, I have found myself needing to create several new types of table cells to mimic some of Apple's existing functionality (for instance, all the different types of table cells present in the Settings application). I can't imagine I'm alone here.
...
I'm developing for the iPhone and am looking for a good Cocoa/Objective-C library for working with SQLite. I don't want to use the standard procedural SQLite C API. I see options at sqlite.org under the Objective-C section, but am not sure which is the best in terms of library API design, stability, and functionality. I'd like to use ...
Hi all,
When a PNG is added to an XCode iPhone project, the compiler optimizes it using pngcrush. Once on the device, the image's rendering performance is very fast.
My problem is that my application downloads its PNGs from an external source at runtime (from Picasa Web albums, using the Google Data APIs). Unfortunately, these images...
Hi,
I have been programming with the iPhone SDK for some time now.
I have not been using Interface Builder. This scares me a little. I know that in effect I may be 'fighting the framework' but I do not see it that way.
I find it very easy to just instantiate my UITabBarController in my app delegate, instantiate a UINavigationControl...
How do you force an iPhone web app (not a native app) into landscape mode?
...
iPhone OS 3.0 is being announced and previewed next week (March 17).
We all know the feature set users want. Copy/paste, MMS, Flash on iPhone, etc.
We'll see about those.
What I'm interested in what does the development community feel the SDK is missing, in need of, to make programming for the platform easier and more productive.
...
I'm doing this in dealloc of a view
[baseTable release];
In the header file, I declare it like this:
IBOutlet UITableView *baseTable;
....
@property(nonatomic, retain) UITableView *baseTable;
For some reason, I get a "EXC_BAD _ACCESS" in the dealloc. When I comment out the above line, all is well. How can I determine what specifi...
Hello,
I have a Data: URL (see: http://en.wikipedia.org/wiki/Data_URI_scheme) (as a NSString) and I want to open it in Safari. How would you accomplish this (I tried openURL:.)
Example:
data:text/html;base64,(Some Base64 Encoded Data Here)
Thanks,
Isaac Waller
...
I'm writing an iPhone app. I have a header file that looks like this:
@interface EditTagsViewController : UITableViewController {
NSMutableArray *allTags;
NSMutableArray *selectedTags;
NSInteger currentFavorite;
}
@property (nonatomic, retain) NSMutableArray *allTags;
@property (nonatomic, retain) NSMutableArray *selectedTags;
@...
Duplicate:
How can i use picker view in iphone application using cocos2d ?
Hello everyone i am working on iphone gaming project.In this game i want spin some image (like reel spin).But i can not do this.Can i use picker view in this application using cocos2d.If can then give some instruction how can i do that or any different solut...
how to check an object have been release from the memory?
i know a object have to be release manually when we use alloc|copy|retain to create that object. if use the instance class method(NSString stringwithformat:), the object will be release automactically by NSAutoRealeasePool,however, sometime there have some object used to release ...