iphone

How do I fix NSURLErrorDomain error -999 in iPhone 3.0 OS

I am trying to update my iPhone app to work with OS 3.0. I have a UIWebView that shows a page fine. But when I click a link it calls my delegate for didFailLoadWithError and the error is Operation could not be completed. (NSURLErrorDomain error -999.) I verified this is still working with OS 2.2.1, so it is something changed in 3.0. ...

Should I get an iMac or a MacBook for iPhone development

I could get a MacBook or an iMac for about the same price but with obvious differences. For iPhone development which one would be best considering these main points. Stationary iMac versus portable MacBook: As an iPhone developer which one is more important taking into consideration performance. I am not as concerned with screen size...

Visualisations of UIKit View Classes and Other iPhone widgets

I'm slowly working through the iPhone Application Programming Guide and although it's been great I was wondering if anybody has seen any resources that match class names/widgets with a visualisation/diagram. For example when I'm reading about Containers and UITableView's it'd be very helpful if I could see what the widget actually looke...

How to create a good looking iPhone navigation controller in landscape mode?

I'm writing an iPhone app in landscape mode. I need to use NavigationControllers in it and they appear just fine. The problem is, the contents of each UIViewController that I push into the NavigationController are grouped tables. These grouped tables don't look very well in landscape mode, they take all the space and buttons look weird, ...

How can I programmatically get the MAC address of an iPhone 3G S?

This question has an answer, but it only works on the old iPhone and iPod touch. On the iPhone 3G S, it gives me "00:00:00:00:00:70", which is incorrect. ...

Memory Leaks - Formatting a String To Display Time, Each Second

Hey guys. I have a method that gets called each second which I want to use to display the time that my app has been doing it's work. Currently the class I'm using (Which I did not create) has a property named progress which stores the total number of seconds. I have already written some code which takes these seconds and formats it into...

In Xcode under iPhone-SDK 3.0, where can I set my Bundle Identifier globally

To clarify, I mean that when I create a new project in the AppName-Info.plist there is a key named Bundle Identifier. It defaults to com.yourcompany.${PRODUCT_NAME:rfc1034identifier} This means that I have to change "yourcompany" to my company name every time I create a new project that I want to run on a device. When I first setup Xco...

Can this type of wiggle image deformation be done on iPhone without using openGL

I have a straight image and I want to deform it in a wave-like manner. Original image: and I want it to look like this (except animated): I haven't tackled the learning curve of openGL yet so if I can do this with Core Animation it would be great. Is this possible? ...

Can text in UILabel have a colorWithPatternImage: assigned to it?

If so, can the image be animated? Is there a good reason not to do this? Memory usage, etc? ...

Does UIApplication send a "Shake-to-Edit" notification in iPhone OS 3.0?

In iPhone OS 3.0, UIApplication allows you to set a applicationSupportsShakeToEdit flag. The documentation says "The default value is YES. Set the property to NO if you don’t want your application to display the Undo and Redo buttons when users shake the device." This is all great and it ties in to the new NSUndoManager class nicely. Ho...

Can I buy 3rd-party tech support incidents for iphone development?

Instead of buying technical support for $195 from ADC, can anyone recommend another way to buy tech support for iphone development troubleshooting? ...

How to keep keyboard from automatically changing on the iphone?

I am using the numbers and punctuation keyboard for a textfield, but whenever the spacebar is pressed the keyboard switches to the default keyboard. Is there a way to prevent this from occuring? I need the spacebar, so removing it is not an option for me if that is even possible. ...

Is there an ideal number of network operations for iPhone OS?

I'm using NSOperation and NSOperationQueue to handle all of my networking threads so my interface can remain responsive while handling data transfer over the internet. Currently, I've got my operation queue set to a maximum concurrent operation count of 5, and it seems to work well. I'm wondering, though, if there is a more ideal numbe...

UIWebview is slow on the iPhone device, fast on simulator

I am loading a webpage from an external server using UIWebView. The page loads very slowly. Using Edge, it takes ~30 seconds. Using WiFi, it takes ~5-6 seconds. The same page is much faster when loading directly through Safari. In the simulator, the UIWebView is very responsive. Has anyone had any experience in increase the performanc...

NSDictionary return value problem

i create a array from a NSDictionary object: NSarray *myarray=[dictionary allValues]; however the return array object at index is not according to the dictionary, for instance the first object in dictionary was "title", but in my array it returned contact number, why this happended and how to prevent? also when i set the object to m...

UIViewController not receiving touchesBegan message

I have a pretty simple UIViewController. It's initialized with a view I've created in Interaface Builder, which contains only a UIImageView. When the user touches the screen, I want the touchesBegan message of UIViewController to get called. So, I override it and added some logging, but nothing has happened. I haven't done anything "sp...

iphone development and jailbreak

I am new to iphone development. We can develop iphone applications through: legal jail breaking If I jail break my iphone OS, after that can I install latest version of iphone OS and make it as legal again from apple site? If I develop jail break applications, can I install it in iphone without apple authorization like provisioning,...

The best way to remove duplicate values from NSMutableArray in Objective-C?

The best way to remove duplicate values (NSString) from NSMutableArray in Objective-C? Is this the easiest and right way to do it? uniquearray = [[NSSet setWithArray:yourarray] allObjects]; ...

Problem with uisegmented control images

Hi, I am using uisegmentedcontrol with images (for selected and non-selected) in my iPhone applications, and have given default selected index as 0.The problem is that, when I select the second segment , the image is not displayed properly. Blue colour appears at the left side of the segment. This problem occurs only in iPhone OS 3.0 an...

Synchronizing an SQLite client database with a MySQL server database

I have created an app in xcode with sqlite3.I want to create a button named sync to sync with my mysql database in my server. Any suggestion about sync process? Please let me know. ...