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-6003d32980629122053397/]
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-6003d329840ee165202769/] In the second part, we give the size of the scroll: [crayon-6003d329840fc022344461/] This CGSizeMake(640, 460), means that our scrollview scrolls vertically up to 640px....
if you want to store simple data, or small, you can do without using sqlite3. In these cases using NSUserDefaults, is very easy to use. We must call NSUserDefaults to start with: [crayon-6003d3298cf22984639295/] After we called, we can store or read data!...
We start with add our UISegmentedControl programmatically to our view: [crayon-6003d329a0e80342711640/] Then having added the segment, with the method valueChanged: inserted into addTarget, we can detect the change of state buttons, we can use this method:...