iphone

Image transfer through FTP

i want to transfer an image from photo library(or camera) in iphone to my ftpsite.. Can any one provide me some sample code ...

String Manipulation in iPhone

Hi, I am having a lengthy string which contains alphabets and a special character like "|". i need to split this strings based on the "|" delimiter and store the individual string in to an array. Is there any string function which helps us to do the same.? Thanks, Shibin. ...

Translating c to objective c

I found a c function which I would like to use in my app. Unfortunately, my c knowledge is not great. The first section of code shows the original c code and the second my "translation" to objective c. I have 3 questions I would appreciate help with please: Is my translation of the variables from their c counterparts to their objective...

Eliminate the char's in url strings

Hi i am new to iphone. i want to eliminate chars from %0A onwards in below url string and %20 also.please any one give some solns. case:1 http://www.sampleurl.com-feb 1.2161280%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20 case:2 %0A%20%20%20%20%20%20http://www.sampleurl.com-feb.html%0A%20%20%20%20%20%20%0A%20%20%20%20%0A%20%2...

How to zoom within distance by giving location ?

Hi guys. I am trying zoom MKMapView by giving location. Also it would be looking around X meters from the location. How to make it ? I tried following code : MKCoordinateRegion region; region.center.latitude = longitude; region.center.longitude = latitude; region.span.latitudeDelta = 0.1; region.span.longitudeDelta = 0.1; ...

Twitter problem on iPhone

Hello guys! I have a problem with the twitter login. I am doing the login with oauth. First login is good, and when I logout and make a relogin the twitter doesn't ask for my password and username, it gives the pin only. Is there a way to send logout to twitter? Because my logout is clears the NSUserDefaults only... If I use the author...

Retain Count after function call. should i worry?

i usually dont check the retain count untill the program leaks. But today (i donno y) i checked the retain count and now i am confused. NSString *strErrorMessage; strErrorMessage= [NSString stringWithFormat:@"Email and Password are mandatory"]; NSLog(@"%d", [strErrorMessage retainCount]); // retain count 1 [objAppD...

How to handle multiple views

Im trying to develop a multi view apllication while trying to avoid navagation controllers as apple recommend this for the iPad. My problem is nav controllers are the only way I know how to make a multiview app, does anyone have a link to code or a book I could look at that show other ways? I already have exploring the iphone sdk and th...

I can't get mailto links to open the Mail app from Mobile Safari when using jQTouch. What could be wrong?

Hi all, I'm developing an iPhone web app using jQTouch, and it contains a simple mailto: link to a valid email address, which should launch the iPhone mail application when tapped—but it doesn't. If I visit a "normal" web page in Mobile Safari which contains the exact same link, and tap on it, I get the expected result: the mail app po...

How can I configure my iPhone project to use a seperate application icon for beta releases.

What I am trying to achieve is for the application icon to be different in builds that I send out to my beta testers, to that of the application that will be submitted for approval. This will allow me and my beta testers to easily identify the app is a beta version. I was not sure if I should be adding a build script to modify the info....

How to correctly detect touches in my UIView ?

Hello guys, I'm having a problem. I have a UIView, that looks like this : In that view controller I implemented the "touchesBegan:withEvent:" method, but the method is only getting triggered when I touch the bar at the bottom of the view , nothing happens when I touch the table. How could I change this behavior to be able to detect t...

Manage country wise databases on different servers in iPhone App

Hello all, I have current a developed app which I am going to submit in just few days . Currently The Application shows data by calling a web service and fetches data from a server . Now client requirement is to build two different databases. So the question is should I make two different builds for two different countries or should...

How can I dismiss a cameraviewcontroller on iPhone sdk?

Hi everyone! I would like to dismiss the camera view, while displaying a modal view, so this would be faster because the camera doesn't display anything. I have set up my cameracontroller this way: self.cameraController = [[[UIImagePickerController alloc] init] autorelease]; self.cameraController.sourceType = UIImagePickerControllerSou...

Disable Back and Forward button on UIToolBar in UIWebview

Hi i am new to iphone. i want to disable Back(left arrow button) and Forward(right arrow button) button on UIToolBar in UIWebView. After moved web page want enable back button and then Forward button want to enable when its need. in my app, i am using toolbar at bottom side via interface builder. please any one help me! ...

understanding TTNavigator

Hi, following situation: in a TTTableViewController i added some Cells with URLs. they are opening a class with @"tt://photos" for example. this works quite fine. the first thing is, i saw some urls in TT Examples like @"tt/photos/1". is it possible to fetch this "1" in my photos class and say, for example okay, please open picture on...

Google Calendar Mobile Version - embed

Hi guys I want to embed a google calendar into an iphone app, my webview is fine, except I can't seem to get the URL I need to view the mobile version without having to logging in. I know its possible as this is done in the twit app (See Screenshot below). How can I do this? Lets say the public google calendar is link text and I want ...

Objective-C, .m / .mm performance difference?

I tend to use the .mm extension by default when creating new classes so that I can use ObjC++ later on if I require it. Is there any disadvantage to doing this? When would you prefer .m? Does .m compile to a faster executable (since C is generally faster than C++)? ...

NSUserDefaults Values and SQLite Database after update an app in the Appstore

Hello, What happens with the NSUserDefaults values and the SQLite database after updating the application in the appstore? Are they deleted or reseted or happens nothing with them? Alex ...

Objective C - get response from php file

I have some php files in a server which generate xml code in them. I need to get this xml code from an Iphone app by sending some GET parameters to the files. For instance http://myserver.com/myFile.php?param=xxxx and then get the xml generated in this file. I have been researching a lot but couldn´t get any results yet. Thanks a lot...

iPhone provisioning profile renewal help

Hi, my problem is that my provisiong profile expired a few days ago. I visited the developer's portal and downloaded a new one (made it the same name and everything). I followed the instructions and installed the new one and removed the old. I can now run my app on my iPhone again :) but whenever i try to test my app on my iPhone from...