CategoryiOS

How To Update ProgressBar in iPhone

H

//——————— .h File { NSTimer *timer; UIProgressView *myProgressBar; int StartingValue; } @property (nonatomic, retain) UIProgressView *myProgressBar; //———— .m File @synthesize myProgressBar; – (void)viewDidLoad { StartingValue = 0; myProgressBar = [[UIProgressView alloc] init]; myProgressBar.frame = CGRectMake(25, 100, 235...

How to add an icon to your iPhone application?

H

In this post we will learn how to add icon file to iphone application. First you must have icon file 57 x 57 pixels in png format. Once your icon is ready in 57 x 57 pixels and named Icon.png, right click the resources folder and add the Icon.png to resources and do not forget to check the  ‘Copy items into Destination’s folder’ box. Then in Resources folder , find...

How to manage application when orientation changes?

H

The problem is that when you rotate the device then (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation Method gets called but when you go to the next screen then this method does not get called. if you rotate your device again then that method gets called. So if you want to change next screen orientation as device current orientation, then check the...

How to Create UILocalNotification, repeating every minute ?

H

There are two types of notifications in iOS, One is Local notification & other is PUsh notification. Added code to create Local notification. // creating notification NSDate *newDate = [NSDate dateWithTimeIntervalSinceNow:60]; // where 60 = seconds, so add your seconds here Class cls = NSClassFromString(@”UILocalNotification”); if (cls != nil) { UILocalNotification *notification =...

Category