Tag Archives: Xcode

iPhone – Localization

Localization is a must in mobile application development. The article will shows you how to localize your iPhone Application in just a few steps.

1. Whenever you need a localized string in your application, use the NSLocalizedString(NSString *key, NSString *comment).

[self.label1 setText:NSLocalizedString(@"label1.text", @"Label1 in MyViewController.m")];
[self.label2 setText:NSLocalizedString(@"label2.text", @"Label2 in MyViewController.m")];
[self.label3 setText:NSLocalizedString(@"label3.text", @"Label3 in MyViewController.m")];

  Continue reading iPhone – Localization

iPhone – Configuring the AVAudioSession and Output Audio to iPhone Speaker

I am working on the AVAudioRecorder and AVAudioPlayer. By default, the output audio is routed to the receiver instead of the iPhone speaker. In order to fulfill my requirement, i have to configure the AVAudioSession in the AppDelegate.

There are 2 ways to route the audio output to speaker.

  • Overriding the output audio route
  • Changing the default output audio route (iPhone OS 3.1 or above)

Continue reading iPhone – Configuring the AVAudioSession and Output Audio to iPhone Speaker

iPhone – Aligning UIToolbar Items on Code Level

In Xcode, If you want to add items to the UIToolbar, you need to create an NSArray which stores all the items and put them to the UIToolbar using the setItems method.

If you want to align one items on the left and the another one on the right. you need to create a space item in between the two button in the array. That’s just like adding a Flexible Space Bar Button Item in Interface Builder.
Continue reading iPhone – Aligning UIToolbar Items on Code Level

iPhone – Start Developing Your First iPhone Application

Recently, I start learning the iPhone Application Development. If you want to be a iPhone Application Developer, you have to fulfill the following requirements.

  • A Mac computer
  • Register as iPhone Application Developer at developer.apple.com
  • Download the Xcode which is your development IDE

 
Continue reading iPhone – Start Developing Your First iPhone Application