Status bar and navigation bar appear over my view’s bounds in iOS 7

You can achieve this by implementing a new property called edgesForExtendedLayout in iOS7 SDK. Please add the following code to achieve this, if ([self respondsToSelector:@selector(edgesForExtendedLayout)]) self.edgesForExtendedLayout = UIRectEdgeNone; You need to add the above in your -(void)viewDidLoad method. iOS 7 brings several changes to how you layout and customize the appearance of your UI. The … Read more

Will iOS launch my app into the background if it was force-quit by the user?

UPDATE2: You can achieve this using the new PushKit framework, introduced in iOS 8. Though PushKit is used for VoIP. So your usage should be for VoIP related otherwise there is risk of app rejection. (See this answer). UDPDATE1: The documentation has been clarified for iOS8. The documentation can be read here. Here is a … Read more

How to make UI with round image and round text, also add ratting icon on same circle. in iOS application

Import roundImageView.h class in your view class and set background image on your UIButton. Please change button type Custom. After Following these steps try this code . CGRect frame = CGRectMake(0, 0, 200, 200); roundImageView *roudImage = [[roundImageView alloc]init]; UIImage *image1 = [roudImage createMenuRingWithFrame:frame :@”Your Title” labelBgColor:[UIColor colorWithRed:(191/255.f) green:(251/255.f) blue:(158/255.f) alpha:1] ringBgColor:[UIColor colorWithRed:(214/255.f) green:(214/255.f) blue:(214/255.f) … Read more

get UITextField Tag in Custom Methods

//yourviewcontroller.h @interface ViewController : UIViewController { int tag; } //yourviewcontroller.m – (void)viewDidLoad { [super viewDidLoad]; tag = 0; } – (BOOL)textFieldShouldBeginEditing:(UITextField *)textField// return NO to disallow editing. { tag = textField.tag; return YES; } – (IBAction)cancelNumberPad:(UITextField*)textField { NSLog(@”The user is typing in text field %d”,tag); } – (IBAction)doneWithNumberPad:(UITextField*)textField { NSLog(@”The user is typing in text … Read more