Entries Tagged 'XCode' ↓

iPhone How to: UItextField Value to Show Float with Zeros

To have a UILabel print out a price float with 2 decimal places you'll want to cast a string with to except a float with 2 decimal places.

myFloatLabel.text = [NSString stringWithFormat:@"$%3.2f", [self.floatValue floatValue]];

No Access to iPhone running OS 3.0.1 though XCode Organizer

After updating the iPhone in iTunes to Software OS 3.0.1 I was unable to access it through the xcode organizer. After reinstalling the newest xocde (failed) and some digging I found a line of code you need to copy and paste into your terminal once, restart xcode, and you have access to pushing onto the iphone again.

Open up Terminal, copy below, paste and enter into terminal, restart xcode.

ln -s /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0\ \(7A341\) /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0.1