Category Archives: iOS Development
Push Notifications for iOS Apps – PushWoosh
I came across a service for push notifications, probably a bit late to the table but I have only just needed push notifications in my apps. Being a web developer my original idea was to host the service on my hosting and then that way I would be able to send as many notifications as […]
Using Current location in Apple Maps
I was updating one of my iOS apps that used to open up the Maps Application to show directions from the current location to a set of coordinates. Before Apple Maps was introduced we could use “Current Location” as a way for Maps to use the users current location (http://maps.google.com/maps?saddr=Current%%20Location&daddr=51.535455,-0.247557) this no longer works in […]
Add a custom font to iOS app
I recently needed to add a custom font to my iOS app as the standard ones didn’t work for what I wanted. I downloaded a .ttf file, (I used www.dafont.com) and copied it into my Xcode project. The next step is to open your project’s Info.plist and add a new key “Fonts provided by application” […]
purgeIdleCellConnections: found one to purge conn iOS error
I received this error when I plugged my iPhone 5/iOS 6.1.2: purgeIdleCellConnections: found one to purge conn I did a quick google search for this and found that there was a lot of people that had the same issue. One of the results I found was from a Technical Q/A on the Apple Developer iOS site: […]
UILabel blurry on some views
I recently noticed that in one of my apps I’m working on, some of the UILabels I was using were blurry. This was only obvious on non-retina devices. After a bit of research I found that it was down to using floating numbers to define the frame of the label. Basically, floating numbers use decimals […]
iOS Navigation Bar behind status bar after closing full screen MPMoviePlayer
I had a problem with an iOS app I am creating. I have a view that has a UINavigationBar at the top and a table view that displays a full screen video on didselectrowatindexpath. Once the video is playing if the device is rotated and the done button is pressed the video will disappear but the […]
iOS – Check if wifi is being used
In an app I was making recently I wanted to check if the user was using a wifi connection. I used the method below to check and just checked whether it returned true or false. – (BOOL)networkCheck{ Reachability *currentReachability = [[Reachability reachabilityForInternetConnection] retain]; NetworkStatus networkStatus = [currentReachability currentReachabilityStatus]; [currentReachability release]; switch (networkStatus) { case NotReachable: […]
Upgrading iPhone apps to run full screen on iPhone 5
As you probably know already, the iPhone 5 is taller than the previous iPhone 4S and iPhone 4. When I first heard about the change is size my first thought was how long is it going to take to update all my apps to work on these devices. Turns out that so far it hasn’t […]
Replace custom UITableViewCellAccessory-DisclosureIndicator on cell select
After my last post about creating a custom UITableViewCellAccessoryDisclosureIndicator, I found something else to post about. I needed to replace my custom Disclosure Indicator with a selected state. I tried to replace the image with the help of an if statement if(cell.selected){ }if(cell.selected){ } This didn’t work! I then found a solution which was to […]
Change UITableViewCellAccessory-DisclosureIndicator colour
I needed to change the UITableViewCellAccessoryDisclosureIndicator to be white as I had a dark background and the the default grey colour didn’t show up very well. The best way to do this is to create an image and add it to an image view and add that to the cell.accessoryView. cell.accessoryView = [[[UIImageView alloc] initWithImage:[UIImage […]