In French : http://www.vincentsaluzzo.com/2013/07/01/des-macros-pour-simplifier-les-proprietes/ In English (Google Translate) : http://translate.google.fr/translate?sl=fr&tl=en&js=n&prev=_t&hl=fr&ie=UTF-8&u=http%3A%2F%2Fwww.vincentsaluzzo.com%2F2013%2F07%2F01%2Fdes-macros-pour-simplifier-les-proprietes%2F&act=url
Tag: #ios
Update UILabel in SubViewController from MainViewController
Even though you are able to let your MainViewController directly call a method such as updateLabel defined in SubViewController, the […]
RHAddressBook – Saving a Contact
I recently had to create and save contacts in an iOS app, and preferred to use an Objective-C library to […]
Useful resources for iOS developers
A list of the most useful resources for iOS developers: http://pulkitgoyal.in/2013/05/05/ios-resources/
short memo: Objective C variables, Private, Protected, and Public
@private // Access only from the class in which it is declared. @protected // Access from subclasses. // the default […]
Removing Arrow Image from iOS Story Board After Segue
While creating segues in the story board for an iOS project an arrow was showing up in the TableViewCell that […]
Beginning React–Native
Installation and setup new project If you go to main React-native site, you can see these steps below to setup: […]
iOS phone number styling
iOS has an automatic feature to detect phone numbers and link them to a phone call by clicking on them. […]
Own Images in iOS Simulator
To add your own pictures to the simulator, get the simulator running and then drag your image onto the simulator. […]
Convert SQLite to CoreData
NSString* bundlePath = [[NSBundle mainBundle] bundlePath]; NSString* path = [NSString stringWithFormat:@”%@/CoreDataSourceFile.sqlite”, bundlePath]; SQLiteDatabase *database = [[SQLiteDatabase alloc] initWithPath:path]; NSArray *result […]
Easy method for add image to the footer and the header in UITableView
UIImageView * tableHeader = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@”header.png”]]; [areasTableView setTableHeaderView:tableHeader]; UIImageView * tableFooter = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@”footer.png”]]; [areasTableView setTableFooterView:tableFooter];
iOS Version Numbers with git
Some random comments about version numbers in general and a simple script and work flow to create them for your […]
Check if APNS are enabled in your App
– (BOOL)isPushEnabled { UIApplication *application = [UIApplication sharedApplication]; return application.enabledRemoteNotificationTypes != UIRemoteNotificationTypeNone; } Example: NSLog(@”APNS are %@enabled.”, [self isPushEnabled] ? […]
UIImage in Xcode quick look: must be unwrapped
Using Xcode to debug has been fantastic, and frustrating at the same time. UIImage objects are often great to look […]
Bronze Challenge : Proximity Nofication
When a notification is posted, change the background color of HeavyViewController.m RotationAppDelegate.m UIDevice *device = [UIDevice currentDevice]; [device setProximityMonitoringEnabled:YES]; // […]
xctool: fix “No architectures to compile for”
When running an xctool action you can face this error: No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=armv7 armv7s). […]
Downgrade from Safari 6 to Safari 5.1.7 (Lion)
Disclaimer (5/28/2013): Your mileage may vary using this procedure. At the time, I was downgrading from a beta version of […]
Add a border to any UIView
Adding a border to any UIView can be accomplished very simply by accessing the UIView underlying layer and setting the […]
Easily add a delete action into your UITableViews
Adding a row delete action is really easy in iOS by using these delegates: // Override to support conditional editing […]
Useful macros for iOS projects
I usually use a bunch of macros which makes my life easier when developing iOS apps. I hope you find […]