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)
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→
I have downloaded the PageControl example from developer.apple.com but i don’t know the reason why i cannot open the .xib in Interface Builder. Anyway, i cannot make use of this example for my purpose as i don’t how to remove the UIPageControl without using the Interface Builder.
So i follow the example to create a simple UIScrollView with paging feature by scrolling the screen in horizontal direction.
When you have modified the database during the iPhone Application Development, you have to remove the application in the iPhone Simulator so as to remove the outdated database. Then build and run you latest code and that will apply the new database to the iPhone Simulator. Continue reading iPhone – Delete Database Cache in iPhone Simulator→
Adding an application icon to your iPhone Application is simple and straight forward except you need to pay attention to the following few notes before you start working on the your app icon. Continue reading iPhone – Add The Application Icon→
Update @ 2012-11-10: This solution in this post is outdated. please refer to the comment made by Jonny for the solution in iOS 6.
When you try to use the UIKeyboardTypeNumberPad for a UITextField, you will release that there is no return key and so the UIKeyboardTypeNumberPad cannot be dismissed.
Luckily, i find out a very good article which talk about the solution of the missing return key. It makes use of the NSNotification and NSNotificationCenter such that a DONE button image will pasted on the bottom left of the UIKeyboardTypeNumberPad. Here is the code for returning from the number pad after editing a UITextField.
Xcode is the IDE for developing iPhone and Mac Program. It would be much more convenient for developers if the IDE is integrated with version control tools like Subversion.
Xcode is installed with the SCM tool. The following steps show you how to checkout a project from a SVN repository in Xcode. Continue reading Xcode and Subversion→
I have been working on iPhone Application for a month. Hope it can be released soon. =P
As the project is almost completed, i would like to import the source code to a SVN repository. In Mac, there is a free SVN client called svnX. This post show you how to work with your SVN repository using svnX. Continue reading svnX – Free Subversion Client in Mac→