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
Category: iOS
Standalone PHP library for easy devices message notifications push
Hi everybody, I’ve just released my 2.x version of NotificationPusher. https://github.com/Ph3nol/NotificationPusher Feel free to discover it and to contribute! 🙂 […]
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 […]
.gitignore Template for Xcode
https://gist.github.com/2952892 # Mac OS X Finder and whatnot .DS_Store # Sparkle distribution Private Key (Don’t check me in!) dsa_priv.pem # […]
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 […]
Core Data – fetch a single entity
I’ve used the following code to retrieve an entity from Core Data, so that the result returns the entity object […]
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 […]
xcode-select: error: tool ‘xcodebuild’ requires Xcode
Getting this (especially with npm install?): xcode-select: error: tool ‘xcodebuild’ requires Xcode, but active developer directory ‘/Library/Developer/CommandLineTools’ is a command […]
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. […]
Best way to build a iOS Static Framework
Building static libraries (and frameworks) can be a pain in the ass. This amazing article just saved my life: https://github.com/jverkoey/iOS-Framework/#walkthrough […]
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]; // […]