use
[self.view endEditing:YES];
it will dismiss keypa...
Tuesday, April 8, 2014
Moving from portrait view to Landscape view / Potrait UI orientation to landscape Ui orienttion in Phone iOS / Ui Orientation according to device Orientation / manually forcing orientation / change orientation manually
When u are switching from one view to another view .
First view is Portrait mode and next mode is in Landscape mode .
Even u have implemented
-(BOOL)shouldAutorotate;
-(NSUInteger)supportedInterfaceOrientations;
- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation duration:(NSTimeInterval)duration;
USe
+...
-iPhone backboardd[52] : failed to resume in time
Some times u are getting this error
Feb 27 13:18:45 -iPhone backboardd[52] <Warning>: com.xyz.abc failed to resume in time
Main cause for this is the load on main thread.
Try to avoid calling blocking calls for long time on main thread.
Create separate threads for such things.
If u know steps to reproduce follow steps find load...
iOS Architecture [ iPhone ]

reference:-http://www.techotopia.com/
iOS Architecture
Application runs above the Cocoa Touch layer. Application can call any of layer to perform task.
Abstraction increments as layer goes away from hardware.
1. COCOA touch layer:-
Its upper layer...
different type of Application template [ iPhone ] [ xcode ]
Different types of templates in XCode
There are different types of application template in XCode.
Navigation-based Application :- creation application which will having navigation from one view to other.
Open GL ES Application:-creates a basic application containing an Open GL ES view upon which to draw and manipulate graphics.
Split View Application :- An...
Frequently used Design pattern used in iPhone Programming [ iPhone ] [ iOS ]
Model View Controller
Model encapsulates the data for the application, the View presents and manages the user interface and the Controller provides the basic logic for the application and acts as the go-between, providing instructions to the Model based on user interactions with the View and updating the View to reflect responses from the...
Handling AddressBook in iphone [ iOS ]
ABAddressBookRef is class in iOS used to access the address book (a centralized database used by multiple application). with this class we can add, modify, delete the contact.
Create new address book object from address book database.:-
ABAddressBookRef pAddressBook = ABAddressBookCreateWithOptions(NULL, &error);
Each...
Display loading indicator / Activity Indicator / daisy wheel in top status bar [ iPhone ]
In UIApplication:
To start indicator:-
UIApplication* app = [UIApplication sharedApplication];
app.networkActivityIndicatorVisible = YES;
To stop indicator
UIApplication* app = [UIApplication sharedApplication];
app.networkActivityIndicatorVisible = NO;
...
About ViewController / view Controller in iPhone [ iOS ]
View Controllers are the link between data and view(visual appearance). Whenever iOS displays anything on screen it is managed by the ViewController or group of ViewControllers coordinating with each other ViewController provides the skeletal framework on which we...
Lazy Instantiation in Objective-C [ iphone ] [ iOS ] [ Objective C ]
Lazy Instantiation (initialisation ) , this technique is good if you have an object that only needs to be configured once and has some configuration involved that you don't want to clutter your init method.
Means in init method does not initialising the object. Initialise object somewhere else in other method of the same class may...