How to read data from property list file (.plist) to NSDictionary in IOS.
Read data from property list - (NSDictionary *) dictionaryWithPropertyListAtPath: (NSString *) path { NSString *error = nil; NSPropertyListFormat format; NSData *plistXML = [ [NSFileManager defaultManager] contentsAtPath: path]; NSDictionary *result =…
How to get carrier name in IOS ?
CoreTelephony framework contains routines for accessing telephony-related information (available since iOS 4.0, more information here). CTCarrier class allows you to get some useful information about the user’s home cellular service provider. Let’s use…
Generate unique identifier in IOS !
Sometimes it could be quite useful to have a function that generates unique identifiers. Unfortunately iOS SDK doesn’t have method that simply returns identifier as a string. You should use CFUUIDCreate (returns Universally Unique Identifier (UUID)…
How to check that device is iPhone 5
There is no function in iOS 6 that can tell us that app is running on device with tall screen. So we have to check device’s screen size manually. + (BOOL) isTallScreen { CGFloat height = [UIScreen mainScreen].bounds.size.height; CGFloat scale = 1;…
Create your own custom loader UIActivityIndicatorView
Ever wanted to have your own custom loader view instead of iOS’ default spinning circle? If what you want isn’t very complicated, you could probably achieve it very easily using UIImageView’s animationImages property. The catch is that your animation…