Category Archives: tutoriels

iOS tips: — View Property —

“The frame rectangle, which describes the view’s location and size in its superview’s coordinate system.” versus “The bounds rectangle, which describes the view’s location and size in its own coordinate system.“

Posted in app development, iOS, iPhone, tutoriels | Tagged , , | Comments Off on iOS tips: — View Property —

iOS : Macro to check screen size

#define IPHONE_5 ([[UIScreen mainScreen] bounds].size.height > 480.0f) Usage: if (IPHONE_5) … //do whatever need to be done :o)

Posted in app development, iOS, iPhone, tutoriels | Comments Off on iOS : Macro to check screen size

iOS7 Status Bar Color

To set Status bar with different color in each viewControllers : – set “View controller-based status bar appearance” to YES in info-plist file, – set the status bar in AppDelegate as it should be on splash screen – add the … Continue reading

Posted in app development, iOS, iPhone, tutoriels | Comments Off on iOS7 Status Bar Color

iOS Tips : NSNotification raised multiple times

If you add the notification observer in a method called multiple times, you will receive the notification multiple times too. To avoid that , you’ve got 2 solutions : Try to either put the [[NSNotificationCenter defaultCenter] addObserver:…] in the init method instead, Put the [[NSNotificationCenter defaultCenter] … Continue reading

Posted in app development, iOS, tutoriels | 2 Comments

What Color is My Pixel? Image based color picker on iPhone

iOS Tips : A great utility class to get the color of a pixel in an image. This class will work for an image displayed at 100% resolution, but not if Core Graphics is scaling the image for the screen. … Continue reading

Posted in app development, iOS, iPhone, tutoriels | Comments Off on What Color is My Pixel? Image based color picker on iPhone

iOS tips : mixing ARC and non-ARC code

Yes, seems to be a bad idea but when working with third party code, it is useful! It is possible to disable ARC for individual files by adding the -fno-objc-arc compiler flag for those files. Thus, to do so you have to … Continue reading

Posted in app development, iOS, iPhone, tutoriels | Tagged , | Comments Off on iOS tips : mixing ARC and non-ARC code

iOS : sliding menu

I found a really great implementation of the sliding functionality found in the Path 2.0 or Facebook iOS apps to display a Menu. It’s on Github and the readme is very useful. Thanks Tom Adriaenssen !

Posted in app development, iOS, iPhone, tutoriels | Tagged , , , | Comments Off on iOS : sliding menu

iOS : adding search tools in your application

Again a really short post to notice 2 good tutorials I found during my wanderings on internet. Both are from Ray Wenderlich website: How to add search into a tableView User interface customization in iOS 6 Custom UITabBarController

Posted in iOS, iPhone, mac, tutoriels | Comments Off on iOS : adding search tools in your application

iOS : Custom Glossy Button and Calculator

I just found 2 really simple tutorials : the first to create custom glossy buttons programmatically and the second one to create a calculator. Here are the link : glossy button, calculator.  

Posted in app development, iOS, tutoriels | Comments Off on iOS : Custom Glossy Button and Calculator

iOS : Build link error

During the building phase of my applications, sometimes I’ve got this error : Undefined symbols for architecture armv6:   “_main”, referenced from: start in crt1.o ld: symbol(s) not found for architecture armv6 Last time, the solution was easy to find … Continue reading

Posted in iOS, iPhone, tutoriels | Comments Off on iOS : Build link error