Category Archives: iPhone

iPhone Apps Randomly Crashing?

Today at work I was advancing one of our iPhone applications.  It’s a pretty basic application, has a menu which displays some data from the web via XML; all of that fun stuff.

On occasion, I would try to push a view controller and the application would randomly crash, e.g.:

-(void) showMainMenu {
[mainNavigationController pushViewController:mainMenuViewController animated:YES];
}
Read more »

Share

ActivityIndicator with a UIWebView

Because you can never be sure how long it will take to retrieve content from a web page and have it displayed on the iPod/iPhone, it’s quite nice to provide the user with an indication that the content is being retrieved.

The following article provides a nice and easy way to start and stop and animation indicator when the content is being retrieved and has been loaded. Read more »

Share

Reset UINavigationController

The following is a neat little trick to reset your navigation controller when it is integrated with UITabBarController.

The following code will pop the navigation controller up when the user clicks on your tab bar item.  I’ll begin by showing a bit of code that needs to take place.  It’s going to be a quick overview of this to focus on the main function to reset the navigation controller. Read more »

Share

Scroll a UIWebView

I struggled with this one for quite a while.  I kept searching and searching, all I could find was forums and no one seemed to have an answer!

Well, if you’re here, don’t worry, I have the answer you have been looking.  Let me show you how to make a UIWebView scrollable for your iPhone application. Read more »

Share

Transparent UIWebView

The other day I was working on my iPhone application.  In the application I have a view.  This view creates a UIWebView.  I then proceed to load content from a webpage into the web view.

This works great.  I was then tasked with adding a bit of style to the view.

I started by creating all of the style in the webpage, but I quickly realized that this was causing the load to be a lot slower.  Instead I had to integrate the design into the view and simply display the content from the webpage in the design.

This was going pretty well until the webpage sat like a big white blob on top of my nice image.  I couldn’t let this be and had to find a solution, luckily it wasn’t to complicated. Read more »

Share

UINavigationController Background Color

Boy today was a frustrating day.  Over the past month or so, when I have some free time at work I’ve been learning Objective C to create iPhone applications.

Today, I struggled and struggled to do the most simplistic thing ever and I wanted to share it with everyone so if you get stuck with the same problem, hopefully you will solve it a lot quicker than I did.

What I was trying to do was to change the background color of the “blue” navigation header. Read more »

Share

Buy one of my books