Top of the page
Close

This is a red error

This is a red error

This is a red error

Sending email message from the app using MFMailComposeViewController in MessageUI on iPhone

2010.04.16 13:53:08 by Ondrej Rafaj

Just a short version of our tutorial "How to send mail from an iPhone app"

Back to top Read more ...

UIView programmatically with rounded corners

2010.04.15 22:09:49 by Ondrej Rafaj

Short snippet that explains how to create new UIView programmatically, and than setu rounded corners, background color and than add this view to your main view on the screen

Back to top Read more ...

How to remove first characters from string in iPhone SDK

2010.03.11 15:05:32 by Ondrej Rafaj

Removing first ore more characters from NSString in XCode (Objective-C; iPhone SDK)

Back to top Read more ...

Validating email address field in iPhone SDK / XCode

2010.03.10 18:27:11 by Ondrej Rafaj

Example of validation of e-mail address field in Cocoa and on iPhone in XCode using regular expression without need of using RegexKitLite

Back to top Read more ...

Escape single quotes in strings for SQLite3 database

2009.11.05 12:38:40 by Ondrej Rafaj

This function will escape the NSString for SQLite3 database. You can use this function to escape or change any other character.

Back to top Read more ...

How to keep the iphone screen on, and stop it from auto locking

2009.10.13 17:08:34 by Ondrej Rafaj

Very nice snippet, this allows you to keep your screen turned on as long as you need. Using the idleTimerDisabled in applicationDidFinishLaunching (UIApplication)

Back to top Read more ...

Check the first launch of the application on iPhone (Objective-C, XCode, iPhone SDK)

2009.09.22 02:30:56 by Ondrej Rafaj

Really simple example how to check the first launch of the iPhone application written in Objective-C in XCode.

Back to top Read more ...

Example of using NSMutableArray and addObject in Objective-C in XCode

2009.09.17 18:29:37 by Ondrej Rafaj

Example of using NSMutableArray and than reading all the variables back into the NSLog as a NSString.

Back to top Read more ...

How to read a file, line by line into the NSArray in Objective-C

2009.09.17 18:18:01 by Ondrej Rafaj

This piece of the code will first, load your file into the NSString and that by using componentsSeparatedByString will parse all loaded lines into the NSArray.

Back to top Read more ...

How to enable or disable iPhone status bar in XCode

2009.09.16 20:49:05 by Ondrej Rafaj

Here you can see how to enable or disable (show/hide) the grey statusbar with the name of your operator and battery status in your iPhone application.

Back to top Read more ...

Example of threading in iPhone SDK (Objective-C using NSThread)

2009.09.04 17:38:18 by Ondrej Rafaj

Example how to use create a new thread using NSThread to run some method in the background of your application.

Back to top Read more ...

Show custom error messages with UIAlertView

2009.08.19 16:10:22 by Ondrej Rafaj

If you want to display your own Error or Alert messages in your iPhone application, you need to use the UIAlertView. This simple snippet will show you how to do that.

Back to top Read more ...

Calling a javascript function in your UIWebView from Objective-C

2009.08.19 12:34:37 by Ondrej Rafaj

This snippet may help you if you have some, for example SVG content, in your web view (UIWebView) and you want to call some specific javascript function from it.

Back to top Read more ...

Set background image for UIView in Objective-C on iPhone

2009.08.14 15:31:34 by Ondrej Rafaj

Example how to implement background image for UIView in your iPhone application.

Back to top Read more ...

How to animate UISwitch while switching from function

2009.08.12 17:31:19 by Ondrej Rafaj

I you want to change state of the UISwitch with animation (looks better :)) just check this snippet.

We will be using UISwitch, beginAnimations, setAnimationDuration and commitAnimations

Back to top Read more ...

How to detect iPhone or iPod in javascript on the website and redirect those on the different location

2009.08.10 16:29:09 by Ondrej Rafaj

This piece of the code can detect iPhone or iPod Safari and will redirect those browser on the different location.

Back to top Read more ...

Encode URL by adding percent escapes in Objective-C

2009.08.07 12:11:12 by Ondrej Rafaj

This snippet will show you how to encode the URL ... that means replacing special characters with their % equivalent.

Back to top Read more ...

How to load remote file from internet into your Objective-C application

2009.08.06 12:58:56 by Ondrej Rafaj

Learn how to load content of the remote file from the internet into NSData variable.

Back to top Read more ...

Start link in Safari from your iPhone application

2009.08.06 12:33:44 by Ondrej Rafaj

Shows how to redirect user from your application to the link in Safari

Back to top Read more ...

IE SUCKS, DON'T USE IT :) Digg this page