Find a char or string in a NSString is very simple, we have for example a NSString called thestring that contains “auto and bike”. To find the word and, the code is here: [crayon-5c1a179347a73674994042/]

Put in .h file, the delegate and datasource where it has been declared UIPickerView: [crayon-5c1a1793481e5843845208/] Later in .m file, declare UIPickerView, with delegate and datasource = self: [crayon-5c1a1793481f7943607406/] As the last thing, put...

In a UISegmentedControl change their style is applied with another away from iOS 5.0 Declare one NSDictionary: attributes Later to first insert your own style with object: [UIFont fontWithName: @ “Eraser” size: 12] and after the attribute...

Detect which device you are using has become, by now, fundamental to better manage their own app. The times where everything was ‘simple’ are over, now we have to optimize as much as possible for every device you use. For this there are some...

Add a UIScrollView programmatically is very simple: [crayon-5c1a17934a111691259824/] In the second part, we give the size of the scroll: [crayon-5c1a17934a124867461621/] This CGSizeMake(640, 460), means that our scrollview scrolls vertically up to 640px....