iphone

iPhone Mapkit: Annotation coordinate inconsistances when saved in core data

Here is my situation. For some reason my annotation coordinates that are saved in core data do not seem to match the coordinates that I can retrieve from the pins location on the map. So, I save my data into core data using something like: [ride setLatitude:[NSNumber numberWithDouble:newRidePlacemark.coordinate.latitude]]; [ride setLo...

how to change the backgroundcolor in mailcomposer application in iphone

How to change the views backgroundcolor in mailcomposer application in iphone? I already used mail.view.backgroundColor=[UIColor orangeColor]; but it's not giving any result. If any one know the answer please tell me. ...

How to get WebView Content Size

Hello, I am looking to find WebView content size to scale data to fit into small size of WebView Frame. WebView is continuous loading data as getting images from IP Camera so -(void)webViewDidFinishLoad delegate method is not called, otherwise [webview sizeThatFits:CGSizeZero] would give receiver content size. How to get WebView conte...

XML answer problem

Hi, I tried to read the response data from google weather api, but german umlauts aren't shown correctly. Instead of "ö" I get "^". I think the problem are those two lines of code: CXMLElement *resultElement = [nodes objectAtIndex:0]; description = [[[[resultElement attributeForName:@"data"] stringValue] copy] autorelease]; How can i...

UITableView scroll horizontal (to right or left)

Hello Guys I display about 8 images in a per row of UITableView. But iphone width is enough for 3 or 4 images. How can I scroll UITableView to right and left to see others? Thank you. ...

Movement of UIButton which is in the UIScrollview becomes slow after pinching/zooming out

Hi All, I have UIButtons in UIScrollview and also UIScrollview contains Imageview too. If i move UIButtons, particular area of the image within that UIButtons arranged will be colored.. Its happening well but my problem is movement of individual buttons are happening well If image is in normal size. and movement is getting delayed once ...

iPhone: Going from transformed layers to jpeg

I have a bunch of images that are transformed (using touch gestures). I want to take the transformations the user does to the images and create a jpeg from it. (ie. if a user rotates a photo to the right, I want to get a jpeg of the photo rotate to the right just as the looks on screen). This takes into account that the photo could be bi...

How does Twitter for iPhone bookmarklet work?

Twitter client (formerly Tweetie) allows you to define a bookmarklet in Safari that launches the app. I want to know which iPhone API allows you to register the protocol specifier (or whatever it's called) - in this case "tweetie:" - in order for this bookmarklet to work. The instructions can be found here and the bookmarklet itself is ...

How to edit .doc file in iPhone

H Friends, I want to edit the .doc files in iPhone and retain its format. I know its possible as many applications like "Documents to go" supports this. I am able to view this type of files currently. Any hint in right direction would be highly appreciated. Thanks in advance ...

iPhone development

Hi All, I am new to iPhone development. I want to make a simple iPhone application which when launched computes the distance travelled by the user,calories burnt,postion of the user,movement.Can anybody provide me the details or approach to follow to develop this application. ...

Map NSString characters to NSData(hex)?

if i have a NSString as @"aef1230fe" how can I map it to NSData exacaly so that when doing this: NSLog("%@",mydata); gives me the output: <aef1230fe> ...

What's the proper way to use sqlite on the iPhone?

Hi, Experts: Can you please give some suggestions on sqlite using on the iPhone? Within my application, I use a sqlite DB to store all local data. Two methods can be used to retrieve those data during running time. 1, Load all the data into memory at initialization stage. (More memory used, less DB open/close operation needed) 2, Read...

Form data upload from iPhone to PHP server via https

Is there a good tutorial or sample project of how to upload data from iPhone to a self-owned web server? The project is like: A survey application on iPhone which stores the user input data in a plist When there is internet connection, the program will enable an "Upload" button When the Upload button is clicked, the program will upload...

UIActivityIndicator not working properly?

Hello frends, I have a problem regarding UIActivityIndicator. I applied "[spinner startAnimating]" at the IBAction on a button and then doing some process. After the process activityindicator should be stopped and then navigate to another view. But the activity indicator does not appear. When I remove the line "[spinner stopAnimating]" ...

UIView animation cancels previous animation?

Hi I have an NSTIMER that counts the time, and on t = 10, it fires an animation but during that time it might happen that another animation is running. This causes the previously running animation to cut off. Any idea? i thought UIVIEW animations were ran in diff threads. I cannot use a willstop selector here since t = 10 might happen wh...

How to make a dump of the current NSUserDefaults standardUserDefaults state to disk and read back in?

I want to have some way of backing up the user defaults to a property list or XML, or some other appropriate file format that can be transfered over the net. How could I get a backup of these so that I can send them to a webserver and retrieve them back to the device and read them in to the user defaults database? ...

Objective-c design advice for use of different data sources, swapping between test and live

I'm in the process of designing an application that is part of a larger piece of work, depending on other people to build an API that the app can make use of to retrieve data. While I was thinking about how to setup this project and design the architecture around it, something occurred to me, and I'm sure many people have been in simila...

How to store an NSDictionary to disk and read back in?

I'm getting an NSDictionary from the user defaults database which has key-value pairs of user settings. So the same content as NSUserDefaults dictionary has. NSLog(@"%@ defaults = %@", [self class], [[NSUserDefaults standardUserDefaults] persistentDomainForName:[[NSBundle mainBundle] bundleIdentifier]]); What would be the easie...

How to set an NSDictionary with key-value pairs as actual user defaults in NSUserDefaults?

My app sets up the default user defaults in the app delegate. I have a dictionary which contains all the default values with their keys. The defaults are set like: [[NSUserDefaults standardUserDefaults] registerDefaults:defaultSettingsDict]; I know I can set individual default values. But is it also possible to set a whole chunky dic...

iphone: can i convert UIImageView animation to svg/gif file?

Hello, is there any way to convert UIImageView animation which is composed of array of images to any animated format (i.e into gif/svg) in iphone? ...