iphone-sdk-3.0

if statement is giving me some trouble

For some reason, this if statement is giving me an "Expected : before ] token. if ([ [mine commodity] isEqualToString:@"Gold"] && [gold == YES]) { [tempMine setAnnotationType:iProspectLiteAnnotationTypeGold]; [mapView addAnnotation:tempMine]; } is there some typo here that I'm not seeing? ...

Detecting a Lightweight Core Data Migration

I'm using Core Data's automatic lightweight migration successfully. However, when a particular entity gets created during a migration, I'd like to populate it with some data. Of course I could check if the entity is empty every time the application starts, but this seems inefficient when Core Data has a migration framework. Is it possib...

How To Make iPhone App compatible with multiple SDK (firmware) versions

With iOS4 coming out soon, I have already planned to include an iAd in a future update of an app of mine. I assume that this will make my app unusable for anyone on a firmware lower than 4.0. Is there a way to change that variables and the .xib file based on the user's firmware? Cheers. ...

How to delete all Annotations on a MKMapView

Is there a simple way to delete all the annotations on a map without iterating through all the displayed annotations in Objective-c? ...

How do you make an Image View a Hyperlink on the iPhone?

My question is this: in many free iPhone apps adds which are basically imageViews are buttons. When pressed, they bring you to the iphone App store to buy whichever app was advertised. Can this be tweaked to open a hyperlink in the iphone's safari browser? and if so, how? ...

Can't add to NSMutableArray from SecondaryView

Hi guys, I've searched and read and still haven't found a concrete answer. Brief: I have an application where I declare an NSMutableArray in my AppDelegate to synthesize when the application loads. (code below). I have a SecondaryViewController call this function, and I have it output a string to let me know what the array size is. Ev...

Showing IPhone keyboard in different languages based on user input.

Hi, My question is related to the following question, and can be said almost same. http://stackoverflow.com/questions/330542/setting-the-iphone-keyboard-language But here are my requirement. I am writing dictionary app for IPhone, which support multiple languages. So my requirement is to display the English keyboard when user has sele...

Initializing Detail View from nib with parameters passed from Root View

I'm have a map view with a number of annotations on it... once the callout is clicked, i need to pass several parameters to the DetailViewController, so ive been trying to do this through the constructor. I've debugged a bit and discovered that the arguments are being passed properly and are being received as expected within the constru...

NSURLCredential not working for synchronuos request in iphone

Hi Friends, I am using Synchronous request and passing the credentials but I am getting authentication error in response. Below is my code of request and response from server. Request:- NSURLCredential *userCredentials = [NSURLCredential credentialWithUser:@"username" p...

Storing unique ID in UITableViewCell

I have a table where there will often be two cells with the same title. I'm zooming in on a map whenever a cell in the table is clicked, so using the title as a unique identifier is out of the question. I already have a unique identifier, but I need to find a way to store it in a UITableViewCell object. I have been considering two opt...

How to check for server side update in iPhone application Web service request

Hello All.... I have kind of Listing application for iPhone application, which always calling a web service to my php server and fetching the data and displaying it onto iPhone screen. Now, the thing to consider in this scenario is, my iPhone application everytime requesting on the server and fetching the data. But now my requirement ...

touchesBegan and other touch events not getting detected in UINavigationController

In short, I want to detect a touch on the navigation controller titlebar, but having trouble actually catching any touches at all! Everything is done without IB, if that makes a difference. My app delegate's .m file contains: MyViewController *viewController = [[MyViewController alloc] init]; navigationController = [[UINavigationContr...

iphone openURL to google maps local search doesn't work as expected on 3.x vs. 4.0

I'm trying to do an openURL to launch the google maps address: http://maps.google.com/maps?q=cars&ll=40.088745,-82.992491&sll=40.088745,-82.992491&radius=20&z=16 In iOS4 I see my local results as expected. However, when I try the same link on a 3.x device it shows me the entire world with results in Europe and North ...

iPad Camera Connection kit?

Does anyone know if it is possible to access the iPad's camera connection kit? I would like to read the files off the connected mass storage device. Would this be possible or is this something that only Apple can do in there apps. Thanks ...

How to use UIWebView to get scrolling text ?

Hi, In my iPhone application I need a scrolling text. I had the text to be displayed and scrolled up and down but I could not get customized text. I mean all the text is of same font. I need some different font size text . I am using UITextView, but UITextView do not support customized text in it. How can I have the scrolling text whic...

how to connect facebook sdk with cocos2d

hi all, As we all know face book is providing SDK to add face book in our applications. In simple applications it's easy to add such sdk as all things are known, but how to add face book sdk in cocos2d applications. I am new to this thing, so if any one can help me out , how to add face book adk with cocos2d?? I've done the same in si...

removing the rtf format and tags from nsMutableString

hello everyone. I am trying to display the contents of a rtf file in uiwebview. I do this by taking the contents of rtf into nsmutablestring and loading it into uiwebview. The problem is along with the content of rtf, the rtf tags and format is also passed in the nsmutablestring. so i the entire content is displayed along with the rtf ...

UINavigationController back button problem in landscape mode?

Hi, my iphone application supports portrait mode earlier, now i want to support land scape mode also. everything is working fine in my application except the navigation controller back button. i have used tableviews in navigaton conroller, when i click back button in landscape mode view is getting poped and its loading its previous vie...

Custom MKMapView annotation display is not showing User Location

I have an application with a flipside view and a main view. The main view copies information contained in an array from the application delegate, and pushes the useful information into a for loop which then takes the name, GPS coords, and other identifying information and passes that into a series of methods and classes which result in a...

iPhone StoreKit. Verifying Store Receipts Sample

hello all. i am development 'in app purchase' for iPhone Application. I want the sample code. http://developer.apple.com/iphone/library/documentation/NetworkingInternet/Conceptual/StoreKitGuide/VerifyingStoreReceipts/VerifyingStoreReceipts.html ...