iphone

Create Multiple (similar) Levels based game in iphone sdk

I have this game where balloons are coming from bottom and player has to pop them by tapping before: Time runs out OR 10 balloons leave screen unpopped e.g. game over. Every level is same , only thing changes is number of balloons. For this i have the following view controllers: MainLevelVC: The first one, to which the BaloonPopView...

how can i trace the finger movement on touch for drawing smooth curves??

like what i want is if i move my finger fast on the iphone screen , then i want like something that it make a proper curve using quartz 2d or opengl es whatever. i want to draw a path in curve style...... i had seen that GLPaint(OpenglES) example ,but it will not help me alot , considering if your finger movement is fast..... something...

iPhone - in-app purchase to sell our products

Hi I have a website which sells a product to the user (downloadable). I am creating an iPhone app and want to be able to sell some of the products using the 3.0's in-app purchase. Now the documentation mentions that anything you want to sell has to be uploaded to itunes connect and approved by Apple. But I want to be able to keep addi...

iPhone SDK 3.0 in-app email - changing navigation bar tint color

My App uses the iPhone SDK 3.0's new in-app email feature. I want to change the tint color of the email UI to black and make it translucent. I tried the following code, /* picker.navigationController.navigationBar.tintColor = [UIColor blackColor]; picker.navigationController.navigationBar.translucent = YES ; */ But it's changing the...

iPhone Obj-C: Anonymous Category or "private" Category?

Style-wise (and functionally, if there is any difference), for declaring private methods, which of these is better? @interface MyClass() @interface MyClass(private) ...

Loading a view controller from viewDidLoad

Hello I want to create a tabbar application in iPhone using X-code.I have one splash screen and then after that I have my Home Screen where I want to create tabbar in that view. so, I create a tabbar in my ViewDidLoad method. - (void)viewDidLoad { NSLog(@"in Home"); tabBarController = [[UITabBarController alloc] init]; ...

On iphone 3.0 how to disable Cut, Copy and Paste option

Hello everybody, Does any one know, how can i disable cut, copy and paste option on iPhone 3.0? Thanks for your help and time. ...

In Cocoa, how do I use NSTimeZone to get the system time zone offset as a string?

For PDT, I would want "-0700". I'm getting a date in the past to determine how long ago something happened. NSDate *then = [NSDate dateWithString:@"1976-04-01 12:34:56 -0700"]; // Note the hard-coded time zone at the end I'll be constructing the date string elsewhere but I don't know how to access the local time zone. I read the App...

stop background of iphone webapp from responding to swipes

I'm making a mobile version of my website, and trying to make it feel as native as possible on the iphone. However, any background areas of the page respond to swiping gestures such that you can shift the page partway off the screen. Specifically, if the user touches and swipes left, for example, the content shifts off the edge of the sc...

Apple PNS (push notification services) sample code

Is there a sample project showing how to use PNS on the IPhone and how to set up things? I'm currently looking at the documentation but it would be nice to have some working code to pick apart and see how it all works together? I can't seem to find anything using google or in the iphone dev center. ...

Does full version of application replace the lite version or it is downloaded as new app?

Hi all iPhone developers, can anybody knows that, when i am uploading my new version of application to app store for upgrading it. if there is change in my databse so it needs to delete older version to take effect. Now, when user upgrade it , then apple will remove first app and download newone or it just upgrade the application? ...

PHP file storing on webhosting service?

Hi, I was wondering - is it possible to change files that are stored on some sort of webhosting service via PHP? I mean I have a URL say: "plist.atwebpages.com/action.php" will it possible for this method to write a file onto the ftp server on the web hosting service? e.g. http://www.batcave.net ...

What is the best way to make a bouncing ball animation with infinite loop on iPhone?

Hi, I am developing an iPhone game in which birds bounce like in this game: http://www.students.uni-mainz.de/rathb000/Fillit/Game.html I have set up the images for animating the wings of the flying bird like this: [imgBird[i] setAnimationImages:birdArrayConstant]; [imgBird[i] setAnimationDuration:1.0]; [imgBird[i] startAnimating]; ...

Fuzzy Date algorithm in Objective-C

I would like to write a fuzzy date method for calculating dates in Objective-C for iPhone. There is a popular explanation here: http://stackoverflow.com/questions/11/how-do-i-calculate-relative-time However it contains missing arguments. How could this be used in Objective-C?. Thanks. const int SECOND = 1; const int MINUTE = 60 * SEC...

iPhone SDK 3.0 Vs. 2.2.1

I just installed iPhone SDK 3.0 and found that the text property of UITableViewCell is not used anymore, and should use textLabel.text instead. Does this mean that I have to know the current system version and call the corresponding method? like this. UITableViewCell *cell = ...; if ([[[UIDevice currentDevice] systemVersion] isEqualToSt...

Can I use Dashcode to develop an application that can be sold in the app store?

Can I use Dashcode to develop an application that can be sold in the app store? ...

Strange SQLite behavior

Hi, I am inserting data into a table and sqlite3_step returns SQLITE_DONE. But sometimes there is no new data in the table! Even if I do the check immediately after the data was added. Here is my code: sqlite3_stmt *addTranslationStmt2 = NULL; if(sqlite3_prepare_v2( database , "INSERT INTO translations(lang1_wordid, lang2_wordid) VAL...

disable UIViewController content animating on iPhone rotation

Hi! I need to implement behavior of my UIViewController subclass like in standart iPod.app: when device rotated from portrait to landscape, content of UIViewController stay's still and new view add's above it. The problem is that, when set - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { ...

Displaying an image in UIWebView

I'd like to dislay an image in UIWebView using <img src="imageInBundle.png"/> The above image is in my bundle. I load it, along with other HTML in a string, like this: [myWebView loadHTMLString:htmlString baseURL:[NSURL URLWithString: @"http://www.abc.com"]]; However, I just get a blue box with a white question mark. Is there som...

How to commit changes in SQLite?

Hi, I've got a problem in my database - somehow changes sometimes are not being autocommitted so I need to COMMIT the manually. How can I do this? What code do I have to write in objective-C in order to commit changes in SQLite? I am developing an iPhone application. Thanks. ...