Any recommendations on good sites/resources on programming with the Cocos2d-iPhone game engine?
What worked for you? What is the canonical place for all things Cocos2d? Any sites you recommend? Best practices? Blogs?
Much appreciated
...
I have a Core Data entity called "Item" and it represents an item in a store so it has a name, price, and a few other attributes.
I would like to be able to create lists of these items and I am having some trouble figuring out how to do it.
The problem is that I need to be able to associate a quantity for each item in the list AND I n...
I'm creating an iPhone app and I'm trying to choose between 2 solutions for a persistent store.
Core Data, or SQLitePersistentObjects. Basically, all my app needs is a way to store an array of model objects and then load them again to display in a UITableView. Its nothing too complicated. Core Data seems to have a much higher learning c...
I've typically just used constants in the past for things like this, say
#define SERVICE_URL @"http://..."
//...
NSURL *url = [[NSURL alloc] initWithString:SERVICE_URL];
But is there a better way to do this without hard coding?
I would prefer not to ask something so trivial, but I tried many, many searches for things like "settings",...
How to control scrolling sound of uipicker? Any available sample code?
...
Here is what I have concocted, after poring over the singleton literature.
Have I forgotten anything?
@implementation MySingleton
static MySingleton *mySharedInstance = nil;
//called by atexit on exit, to ensure all resources are freed properly (not just memory)
static void singleton_remover()
{
//free resources here
}
+ (MySin...
Ok, I'm going to try to make this more clear because my last question was extremely confusing. I've included a picture this time. Each one of these circles is a UIImageView and they are each assigned a random image which is one of 7 colors. So each circle could be one of 7 colors. I want to make it so that the user has to hit the cir...
Does anyone have the same problem as I do? ... I've upgraded to the iPhone SDK 3.2 and I am unable to resize UITableViewCell object in my XIB file (usually I've been just resizing the view but now the cell has the same size and there is just a grey are around) ... btw, I've tried to reinstall twice including one deep reinstall.
...
NSString *parameterString = [NSString stringWithFormat:@"USER=username"
"&PWD=API Password"
"&SIGNATURE=API Signature"
"&METHOD=DoDirectPayment"
"&CREDITCARDTYPE=%@"
"&ACCT=%...
I want to search my tableview with a UISearchBar. My tableview is populated from a sqlite database and has over 1800 rows. I have seen a lot of examples that show how it works from a plist or character array, but not a SQLite datasource. If there is an existing example on the web, I can't find it.
An example of how to do this would he...
Hi,
I am a beginner at iPhone development and am hoping someone can help me with my question.
I have a UIWebView displaying a web page. If the user taps inside a textbox on the web page then the keyboard pops up. This is great, but it hides the field that the user tapped on. I have looked around and found code samples to deal with this...
I getting mad doing the research for the solution of this method. I want to control or disable the clicking sound whenever the picker is scrolled. now i want to use the documented one. Can you help me solve this at the range of 1 day? please I really need to do this as fast as i could. But I guess you can give me some hint to solve this ...
I found an old post in the three20 Google Group about external image support not being implemented yet, but that's a few months old and it looks like TTStyledText is
trying to support external images in the newer releases.
I'm pulling out my hair trying to figure out why it isn't working for
me. To reproduce, you can change the sampl...
I want to move the screen as the camera moves or the player moves in the game like in the computer based games like counter strike where the screen moves as the player moves.
I have no idea how am I supposed to do that, either by a multiple images or I have to make a terrain but don't kow how?
...
Hi ,
I am developing an application for iPhone which needs to get the email address and phone number of a particular contact from address book.I used the following code to get these details
- (BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker
shouldContinueAfterSelectingPerson:(AB...
I know iPhone apps. operate like sandboxes. Meaning that they don't have access to other apps' files. And I have also managed to open a website in Safari from a Native App() using:
openURL:[NSURL URLWithString: Website_Address]
There are four Native apps that I have seen being opened from safari.
App Store app
Maps app
Email app
P...
hi, I have some questions about using delegate patten on iPhone.
This is code using delegate patten. This code works.
SecondViewController *secondViewController = [[SecondViewController alloc] init];
secondViewController.delegate = self;
[self.navigationController pushViewController:secondViewController animated:YES];
[...
Hi,
How can we show asian unicode values in UILabel
\U2013\U00ee\U2013\U00e6\U2013\U2202\U2013\U220f\U2013\U03c0 \U2013\U00ee\U2013\U220f\U2013\U03c0\U2013\U00aa\U2013\U221e\U2014\U00c5
Thanks
...
Hi all,
I'd like to have some settings that I can access from anywhere in my app. Is there a best way to implement this? Right now I'm just sticking properties in my app delegate, then access them with:
ClientAppDelegate *appDelegate = (ClientAppDelegate *)[[UIApplication sharedApplication] delegate];
settingValue = appDelegate.setting...
hi,
i want to know what push notification is? is it related to in App purchase?what it does?
what are the advantages of it?
...