Hi folks,
today something very short and simple. There are two ways to hide your status bar within your iPhone app:
- Programmatically
...
//use this whereever you want
[[UIApplication sharedApplication] setStatusBarHidden:YES
animated:NO];
...
- Configuration of your Info.plist (seen in SDK 3.1.2)
Just add a new line to your "your project name"-Info.plist file and select "Status bar is initially hidden" like in the picture below.

Thats pretty all! Have fun,
Andreas
Today I am going to show how we can add a custom overlay view to the standard iPhone video capturing functionality. First of all I have to say, that since the iPhone OS 3.1 is published, a custom overlay is really simple to achive. There are only a few steps you have to do:
Continue reading ‘Custom video/camera overlay view on the iPhone’
Have you ever dreamed of your own custom activity indicator within your iPhone App? The class UIImageView provides a very useful and simple way to implement such a thing. The only thing you have to do is to:
- Provide a number of images that reflect your indicator animation.
- Create a new UIImageView instance and set images and animation duration.
- Position your custom activity indicator within your current view.
To demonstrate the whole process I quickly created some images (I am sure you will style them better than me) which will serve for our animation.
Continue reading ‘Create custom activity indicator for your iPhone App’
Today just a small code snippet to create a nice fade-in-fade-out (or call it pulsating) effect on a given UIImage. To accomplish this within a UIView you have to do only a few steps:
- Create a UIImageView containing your image.
- Create the animation with its properties.
- Set the animation for the specific layer containing your image.
In words of code you will have to do something like the following:
Continue reading ‘UIImageView Fade-In and Fade-Out (pulsating) Animation’
People (especially iPhone developers) watch out! If your iPhone app relies on any kind of internet back-end-service, don’t forget to check if the service is available and even more to check if a internet connection is currently possible (for instance there is no network or the iPhone is in flight mode).
If you don’t provide enough information to your users, that your iPhone app needs a valid internet connection or your back-end-service is currently not available, Apple may reject your iPhone App.
You will find several examples how to achieve that at the web. The following code I found several times at stackoverflow.com could be very useful for you:
Continue reading ‘Check internet connection on iPhone’
Ever wondered how to place more than one button into a navigation bar in your app? I know it doesn’t look neat at all! The class UIBarButtonItem allows us to initialize a new instance with a custom view. This instance can be used as a kind of a toolbar and you can put as much buttons as you like in there. The toolbar again can be used for the rigthtBarButtonItem or leftBarButtonItem. Please remember:
- Keep your interface clean and simple and
- Be consistent with the iPhone Human Interface Guideline
For those guys, who still demand on more than one button on the left or right side of a navigation bar, the following code snippet could be useful.
Continue reading ‘Multiple UIBarButtonItems in UINavigationBar’