iphone

How to upload image to remote server in iphone?

Hi Everybody, I am trying to upload a image which i am clicking with the help of the camera. I am trying the following code to upload the image to the remote server. -(void)searchAction:(UIImage*)theImage { UIDevice *dev = [UIDevice currentDevice]; NSString *uniqueId = dev.uniqueIdentifier; NSData * imageData = UIImagePNGRepresentati...

NSURL parameterString with .NET service call.

I'm tring to use the NSURL class's parameterString message to return the string from the following url: http://www.host.com/Api/Service.svc/GetStuff?param=thisIsTheParamValue I keep getting nil for the parameterString. Does that url not conform to the standards that Apple uses? ...

iPhone UITextField - Show Magnify Callout Programatically

I have created a subclass of UITextField that stores a number. By overriding touchesMoved: I have created the functionality so sliding left and right on the UITextField changes the number value. What I would like is to programmatically display a magnifying glass over the UITextField- similar to the one Apple provides when editing the t...

Sorting NSSets of a core data entity - Objective-c

Hi everyone, I would like to sort the data of a core data NSSet (I know we can do it only with arrays but let me explain...). I have an entity user who has a relationship to-many with the entity recipe. A recipe has the attributes name and id. I would like to get the data such that: NSArray *id = [[user.recipes valueForKey:@"identity"] ...

Do "beta" apps installed on iPod expire when their provisioning certificate does?

I have installed an app on my iPod touch. Will this app expire when the provisioning certificate does? EDIT: I am the developer in this case. I installed it using XCode. I used a development provisioning profile not a distribution one. Does this change anything? ...

UITableView resizing rows problem

Hi All, Hope to get solution to this problem. I have been stuck on it since a long time now. I have a a tableView which has custom labels drawn upon the cell using CGRect. I receive the data from a web service in arrays. Initially i display a line of data on the cells. When the user selects a cell, I call reloadsRowAtIndexPath to incre...

touches event handler for UIImageView

I am just getting stated with iPhone development and can't seem to find the answer I am looking for what I want to do. It seems like I should be able to programmatically create a UIImageView and then set up an event handler for it's touch functions. in c# i would have something that looks like Button b = new Button(); b.Click+= my ha...

"Warning reaching end of non-void fuction" with Multiple Sections that pull in multiple CustomCells within cellForRowAtIndexPath

I'm getting "Reaching end of non-void function" warning, but don't have anything else to return for the compiler. How do I get around the warning?? I'm using customCells to display a table with 3 Sections. Each CustomCell is different, linked with another viewcontroller's tableview within the App, and is getting its data from its indi...

SOAP Messages on iPhone

Hello everyone !! I have to use several SOAP messages to get data from a web service. I got some examples how to do that but they all have the XML (http://icodeblog.com/2008/11/03/iphone-programming-tutorial-intro-to-soap-web-services/) // ---- LOGIN ----- NSString *soapMessage = [NSString stringWithFormat: ...

iphone xml parser error

Hello Friends. I'm trying to implement and parsing xml document using web service in my iphone application: Here is my Request (HTTP GET): http://api.stlouisfed.org/fred/category?category_id=125&amp;api_key=78da607fc8224651eca5653e65a4be5e Response will be: <?xml version="1.0" encoding="utf-8" ?> <categories> <category id="125" nam...

UITextField in UIAlertView doesn't respond to cut/copy/paste on second showing

Edit I've replaced this question with a new post that is not marked "community wiki". That means that answers to the new post will enhance your stackoverflow "reputation". Here's the new post: http://stackoverflow.com/questions/2428393 ...

Nested multi value specifiers in iPhone app's Settings bundle

Hi, I am trying to add nested multi value specifiers to my app's Settings bundle (something like what is done in the "Region Format" section of the International settings in the Settings app). I have tried to use a PSMultiValueSpecifier for the first set of values (first screen, like the list of languages in "Region Format") and then s...

problem with custom NSProtocol and caching on iPhone

My iPhone app embeds a UIWebView which loads html via a custom NSProtocol handler I have registered. My problem is that resources referenced in the returned html, which are also loaded via my custom protocol handler, are cached and never reloaded. In particular, my stylesheet is cached: <link rel="stylesheet" type="text/css" hre...

iPhone SDK: Change playback speed using core audio AVAudioPlayer

I'd like to be able to play back audio I've recorded using AVAudioRecorder @ 1.5x or 2.0x speed. I don't see anything in AVAudioPlayer that will support that. I'd appreciate some suggestions, with code if possible, on how to accomplish this with the iPhone 3.x SDK. I'm not overly concerned with lowering the pitch to compensate for increa...

iPhone app rejection for using ICU (Unicode extensions)

I received the following mail form Apple, considering my application: *Thank you for submitting your update to Νομοθεσία to the App Store. During our review of your application we found it is using private APIs, which is in violation of the iPhone Developer Program License Agreement section 3.3.1; "3.3.1 Applications may only use Doc...

Is this a good way to do a game loop for an iPhone game?

Hi all, I'm new to iPhone dev, but trying to build a 2D game. I was following a book, but the game loop it created basically said: function gameLoop update() render() sleep(1/30th second) gameLoop The reasoning was that this would run at 30fps. However, this seemed a little mental, because if my frame took 1/30th seco...

iPhone facebook friend with email address

Hi all, How do I fetch the email of my friend programmatically in my facebook applicaiton. If facebook don't provide that functionality then can i provide the permission of my facebook application to get email address? If Yes then how? Please can you provide code me. Thanks ...

MFMailComposeViewController hangs my app

Hi, I am trying to add email functionality to my app. I can get the MFMailComposeViewController to display correctly and pre-populate its subject and body, but for some reason when the user clicks on the "Cancel" or "Send" buttons in the nav bar the app just hangs. I inserted a NSLog() statement into the first line of mailComposeContr...

How would I add code that would update an online "counter" so I know how many times an iPhone app is being opened?

So I have searched for this but not finding anything about it and if I missed it sorry about that. What I am trying to do is see how to go about adding some code to my iphone app that will connect to a php script (if connection available) and update a counter so that I can let my clients know that their app is constantly being used? Also...

use uiimagepicker as main view of the application

Hello, More or less, everything is in the title: how to use a UIImagePicker as the main view of the application like for instance for an Augmented Reality App? Thanks in advance for your help, Regards, ...