PXAlertView is a UIAlertView replacement similar to the style in iOS 7 but with a block based API and the ability to customise the styling and add custom views.https://github.com/alexanderjarvis/PXAlertView
Wednesday, 14 October 2015
Monday, 5 October 2015
Transport Security iOS 9 WORKAROUND!
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
Monday, 14 September 2015
How to export a certificate.
To export a certificate from your keychain with the private key, Command-Click the certificate and choose ‘Export “Your Certificate Name”’ and choose the Personal Information Exchange format (.p12). You will be asked to enter a password to protect this file. Once you are done, anyone who has the p12 file and the password will be able to install the certificate and private key into their own keychain
Wednesday, 9 September 2015
CoreData Lightweight Migrations
NSDictionary *options = @{
NSMigratePersistentStoresAutomaticallyOption : @YES,
NSInferMappingModelAutomaticallyOption : @YES
};
.....
[_persistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType configuration:nil URL:storeURL options:options error:&error]
CoreData - SQL Debug
-com.apple.CoreData.SQLDebug 3
com.apple.CoreData.SQLDebug takes a value between 1 and 3; the higher the value, the more verbose the output.
Link
Link
Monday, 7 September 2015
Singleton Pattern
+ (instancetype)sharedInstance { static id _sharedInstance = nil; static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ _sharedInstance = [[self alloc] init]; }); return _sharedInstance; }
Subscribe to:
Posts (Atom)
