Tech Thought

Tech tips, hints, and general musings. PHP, Perl, Mysql, Javascript, AJAX, JSON, Linux, Mac OSX

Entries Tagged ‘iphone’

How-to Fix: The application-identifier entitlement is not formatted correctly

A new error has started showing up when submitting iPhone Apps through iTunes Connect: “The application-identifier entitlement is not formatted correctly; it should contain your 10-character App ID Seed, followed by a dot, followed by your bundle identifier.” From what I can tell, the way to fix this to create a NEW entitlements file (see [...]

Comments (4)

How To: iPhone SDK – Play and Record Audio concurrently

Unfortunately, it’s quite a fiddly process to record audio and play it back at the same time on the iPhone.  By default, the sound output is very quiet from the iPhone’s speaker when you are recording sound.  So how do we fix this? First, setup your audio session to record audio: NSURL *url = [NSURL [...]

Comments (8)

New iPhone: Torch, Flash and Front/Rear cameras?

After the recent release to developers of iPhone SDK 4.0, the inevitable scramble to review the new APIs has been on in earnest.  One of the first things noticed were the following new AVCaptureDevice class properties: AVCaptureDevice – isFlashMode Supported AVCaptureDevice – isTorchMode Supported AVCaptureDevice – position (Front or Rear) These new properties relating to the iPhone SDK [...]

Leave a Comment

How-To: Convert UIImage to Greyscale Equivalent

Here’s a simple code snippet for converting a UIImage to a greyscale equivalent: -(UIImage *) convertToGreyscale:(UIImage *)i { int kRed = 1; int kGreen = 2; int kBlue = 4; int colors = kGreen; int m_width = i.size.width; int m_height = i.size.height; uint32_t *rgbImage = (uint32_t *) malloc(m_width * m_height * sizeof(uint32_t)); CGColorSpaceRef colorSpace = [...]

Leave a Comment

What does iPhone OS 3.0 Mean for your Apps?

Recently I was involved in a podcast regarding the iPhone OS 3.0 upgrade. We looked at all the new features (and some upcoming ones in v3.1) and discussed how they relate to new features clients can develop in their apps. You can hear more here: What does iPhone OS 3.0 Mean for Your Apps (WSP [...]

Leave a Comment

How-To: Convert NSData to NSString

How do you convert an NSData object into it’s string representation?  Should be easy, right?  It is, when you know how… NSString* theString = [[NSString alloc] initWithData:theData encoding:NSASCIIStringEncoding];

Comments (1)

iPhone UIScrollView with UIImageView have issues Interface Builder

Ever wanted to have an image view in a scrollview? Sure, you could directly add it using code, but wouldn’t it be nice to do it in Interface Builder? If you’re like me, you like to leave on the defaults unless absolutely necessary. I had an issue where I added an image view to the [...]

Leave a Comment

iPhone: Bugged UINavigationController? View doesn’t Scroll.

Developing a networked iPhone application, I had two views that were very similar – so similar in fact that they were copies of one-another with “Sending” renamed to “Receiving”. The idea was to get them both working with different XIB files, and then modify them. The code to load the sending view (from the main [...]

Leave a Comment

WWDC 2009 Update: Keynote Summary for iPhone

WWDC: Today’s keynote included many things we already knew about the iPhone, and few things we didn’t. Here’s a quick summary from the team at WSP Online – on site at the Keynote in Moscone Center, San Francisco CA.

Leave a Comment

BudTrap: An easy way to solve iPhone/iPod headphone tangles

The guys at BudTrap have a great idea.  Create a device, which clips into your iPhone/iPod, stops your headphone getting tangled, and costs just $5 – with $1 being donated to charity.  On top of which, you get 5 additional “buddy” devices which you can share with your friends. They are also into working out [...]

Leave a Comment

NRL Live on your iPhone – Finally!

I’m not sure about you, but we’re well into the 2009 NRL season and the lack of a decent dedicated NRL app has been something that has bugged me.  The AFL has had dedicated iPhone Apps since the start of the season, while the NRL has been stuck with rubbish apps that simply link to [...]

Leave a Comment

How-To: Detect if users have turned off the iPhone GPS

Simple and common situation.  You have an app that needs to use the GPS to function correctly.  However, users have the last say in this and can simply say “No” when the iPhone asks them if your application asks to turn on the GPS.  If you don’t deal with this situation, then it’s likely that [...]

Leave a Comment

A solution to: Application failed codesign verification

Okay, so you’ve spent months working hard on your iPhone project, and you finally go gold.  You get sign off from your client, you’ve squashed the last of your bugs and you think “I’m ready to submit this bad boy!”.  You package it up for release as per Apple’s instructions, and then try and upload [...]

Comments (5)

AFL iPhone: Footy 2009 available now

WSP Online Solutions have just launched Footy 2009 – a fantastic fully featured AFL app which is now available on the App Store.   You can purchase it from the App Store here. It features: Latest AFL news fully licensed from the ABC, displaying full news articles within the App. Live Scores including game details, [...]

Comments (2)

Fairfax Radio News – As Featured by Apple

One of my favorite applications for the iPhone, Fairfax Radio News, is currently being featured by Apple in the New section of the App Store in Australia: Fairfax Radio News provides the latest national 3 minute radio news bulletin (for Australia) direct to your iPhone – and it’s updated 24/7. Very handy when you are on [...]

Leave a Comment

How-To: Fix ‘Verification Failed’ error (0xe8000001) iPhone Adhoc Distribution

I have had huge problems trying to provide my iPhone Applications to friends using the Adhoc Distribution method.  I thought I was following Apple’s instructions down to the letter: Obtain an Adhoc Distribution Provisioning Profile Install provisioning profile in XCode For my project, create a new build profile called “Adhoc Distribution” copied from the “Release” build [...]

Comments (7)

EIATRACK launches iPhone Application

EIATRACK today launched an iPhone application to compliment their subscription web service. The iPhone Application provides subscribers with the following features on their iPhone: Reg Alerts Special Reports Subject and Substance Reports Events The application is a free download from all users and can be accessed from the iTunes App Store.  EIATRACK has further information [...]

Leave a Comment

UIScrollView not working – scrolling doesn’t work

Okay, so I’ve just spent the last few hours trying to work out why my UIScrollView won’t scroll! The secret, I’ve found, is the following: – (void)viewDidLoad {     [super viewDidLoad];     // Setup scroll view     [scrollView setContentSize:CGSizeMake(backgroundImage.frame.size.width, backgroundImage.frame.size.height+200)]; } You must call setContentSize and pass it an object which has a greater size [...]

Comments (16)

How-To: Resolve _CGRectZero Errors developing for iPhone

If you are getting compile time errors regarding _CGRectZero in the UITableViewController, it’s probably because you don’t have the Core Graphic Framework included in your project.  To resolve this problem, try the following steps: In your project, expand the “Targets” section Double click on the name of your application A window will popup.  Click the [...]

Comments (1)

How-To: Automatically sync your iTunes library with all your computers

I’ve come across a problem – my main computer (a MacBook Pro) has all my music on it, and is hooked up to my iPhone. But I’ve just got a nice big flat screen TV and its connected to my stereo. So I want to be able to play music/movies I buy on iTunes through [...]

Leave a Comment