Entries in category "iOS Programming":

August 31, 2010

iOS tip: How to change a navigation bar colour

UINavigationController *navC = [[UINavigationController alloc] initWithRootViewController:startVC];
 
navC.navigationBar.tintColor = [UIColor colorWithRed:130/255.0 green:60/255.0 blue:35/255.0 alpha:1.0];
August 17, 2010

iOS tip: Transparent table cells

Here is a simple yet poweful iOS development trick. All you need to do to make your table cells transparent is to replace the cell’s background view.

UIView *bgV = [[[UIView alloc] init] autorelease];
bgV.backgroundColor = [UIColor colorWithRed:216/255.0 
                                      green:195/255.0 
                                      blue:164/255.0 
                                      alpha:1.0];
bgV.alpha = 0.4;
cell.selectedBackgroundView = bgV;
[bgV release];
August 13, 2010

My Skills Matter presentation

For other presentations, visit the SkillsMatter website.

August 5, 2010

How to create an activity indicator programmatically

Here is how to create an activity indicator programmatically inside your view controller:

// create activity indicator 
activityIndicator = [[UIActivityIndicatorView alloc] 
    initWithFrame:CGRectMake(0.0f, 0.0f, 20.0f, 20.0f)];
[activityIndicator setActivityIndicatorViewStyle:UIActivityIndicatorViewStyleWhite];
 
...
 
// release it
[activityIndicator release];
May 5, 2010

There is no spoon – iPhone vs. iPad

My presentation at the Apple store in Regent Street, London, part of the May talks of the London iPhone Developers Group.

March 13, 2010

The Adventure – From idea to the iPhone (slides)

Here is another presentation I did for London iPhone Developers User Group at the March 2010 meeting (LinkedIn login required) inside the Apple Store on Regent Street, London.

Continue reading …

February 11, 2010

Rails & iPhone integration

ObjectiveResource is an Objective-C port of Ruby on Rails’ ActiveResource. It provides a way to serialize objects to and from Rails’ standard RESTful web-services (via XML or JSON) and handles much of the complexity involved with invoking web-services of any language from the iPhone. This talk shows you how easy it is to create a 2-way communication channel between a very basic Rails application and an iPhone app.

Continue reading …

January 18, 2010

iPhone: Retrieve system details

Compared with the Android platform, the segmentation on Apple mobile technology is very limited. Literally, there are 3 versions of the iPhone and 2 versions of the iPod Touch, all of them with the same screen resolution.

Still, there are differences that need to be accounted for when developing for this platform. In this article, you’ll find couple of lists of useful methods as well as couple of lines to help you perform different logic based on the device.

Image courtesy of cogdogblog.

Continue reading …