iphone

UIImagePickerController image properties metadata

Hi all. I was able, in iPhone os 3, to get EXIF dictionary with PLCameraController and with -(void)cameraController:(id)sender tookPicture:(UIImage*)picture withPreview:(UIImage*)preview jpegData:(NSData*)rawData imageProperties:(id)imageProperties { but now in os 4 my app doesn't call this function, and I can not get i...

Why this simple jQuery example won't work on iphone?

I'm writing a simple example to see how an iphone reacts to Http and Https... but weirdly, I can't get it working as the ajax call doesn't do anything. It works well on everyother browser, including safari, but not on Ipod Touch. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt...

Accessory View in UITableView

Hi All, I have a doubt in accessory view in UITableView. The doubt is Is it possible to add more than one button in UItableviewcell using accessryView if so plz guide me. thanks in advance ...

How to receive NSUserDefaultsDidChangeNotification iphone

Hi all, After a lot of searching I was not able to find wheather you need to pass a dictionary object to: [NSUserDefaultsDidChangeNotification addObserver: forKeyPath: options: context:]; and what should be provided in options if I want to be notified for even a single change in the userDefaults. Also what is keypath? Thanx in adva...

Issue fetching Images asynchronously in UitableView cells, which is loaded as a background process :s

Hi, I am building an iphone app, now this app has a tabviewcontroller and one of the tabs has a navigation view controller in it. Inside the navigation view controller I have 2 UIview controllers and in one I am loading a UITableView. The data for the cells is loaded up from a database and it takes some time, to avoid this I am doing a ...

Static analyzer says I have the potential leak of an object...

This is an object I made to do some flash cards. The first method (I left out the main part) generates a NSMutabaleArray of Card objects with the passed in operator and works fine. The second method, "drawFromDeck" gets called on a Deck object from my view controller and also works fine, but the Static Analyzer says I may be leaking an...

Hidden, un-cancellable local notifications on iPhone?

During app development, I created 2 local notifications that repeat every day (one in the morning and one in the evening). I am trying to cancel them (and all others) via a call to [[UIApplication sharedInstance] cancelAllLocalNotifications] but they are still occurring at the scheduled times. When I query for the list of scheduled no...

How can effectively use dynamic CSS in a mobile browser?

I am trying to develop a mobile version of my web application and I am having trouble getting it to look good on multiple browsers. I figure if I use some device capability detection I can dynamically generate widths and font-sizes based on a particular devices screen size. The problem is that it seems like a mobile browser doesn't tre...

how to copy song from iPod Library into your app?

I dont want to select again n again the same sound to play as background in my app. How can i copy sound file into my app assigned folders/files? I can play file in the method mediaPicker:didPickMediaItems: How to save that sound file? ...

Validation with multiple UITextFields

Hi, I would like to create a UIView has multiple UITextFields validates each one as the user is done editing it. The view controller is the delegate for each of the UITextFields. When a user changes a value in one of those UITextFields and either touches "done" on the keyboard or touches on another one of the textfields in the view, I...

Why isn't AVAudioPlayer found after upgrading to iPhone SDK 4.0?

This is a simple problem, but it is proving surprisingly intractable for me. As part of beginning to learn iPhone programming, I have written a few small programs and also entered some from a couple of books. These apps worked fine until the other day when I downloaded and installed the latest development software from Apple. Now my...

Showing a new view over the camera view

Hi All I am using UIImagePickerController to allow the user to take a picture. I have hidden the default camera controls and added my own buttons. All good so far. When one of these buttons is pressed I want it to load a setting view over the top where the user can change some settings and then return back to taking a picture. My butt...

iAd left white blank screen after closed

I got a problem to integrate iAd in my iPhone apps -- the banner ad is fine when it expends (see http://www.clingmarks.com/iAd1.png and http://www.clingmarks.com/iAd2.png), however, when I close it, it left a white blank screen (see http://www.clingmarks.com/iAd3.png). I couldn't figure out why. Here is how I integrate the ad: Because I...

How do I convert the value of a UITextField to an NSNumber?

Hi! I have a small problem with iphone sdk. I have 4 values into my xib, 4 UITextField where I insert hostname, description, name and PORT. Port is numeric number (NSNUMBER). I must convert text (UITextField) into an NSNUMBER object but I don't know how. I try to do: NSNumber *temp = [[NSNumber alloc] initWithString:portTextField.text...

iPhone - Certificate Signing Request not showing in Distribution Profile

Hi all, We're trying to get our app ready for distribution on the app store. We provisioned it for a single device which works well so we know its not the code. We create a Certificate Signing Request (CSR) and upload it as instructed (we followed lots of videos and done a lot of reading) but when we hit submit to upload our CSR the pag...

How do I go about saving a portion of the graphical context without disturbing the user?

Hello experts! My situation is like this, I want to programmatically take a print screen of the current view visible to the user and save this to the photo album. The problem is that I don't want all of the views in the hierarchy to be visible. My plan was to: Make a copy of the view hierarchy. Hide the subviews which were not inte...

UIButton inside UIScrollView, inside UIScrollview

Hello, Controller A's view contains a UIScrollview which contains a UIButton. The content scrolls vertically and the button works fine. Controller B's view contains a UIScrollview for paging left and right. When I place my Controller A view inside the scroll view of Controller B's the UIButton stops working. I can't 'de-nest' the scr...

How do I programmatically rename a file(pictre) once I have saved it to the iPhone?

The app basically takes a picture, saves the image to a file and stores the file location in coredata. From here I either choose to save/submit this image or discard it. If the file is saved I want to leave it alone, if it's submitted I want to take the response and name the image that file, and if it's discarded I don't want it. Idea...

PHP to apple push notifications on production problem

Hi guys, i used an example to build an push notification service....it worked greate on the development version, but now that my application is in production, i can not get it to work....i have rebuild my .pem file with production certificates, but by now...,nothing....heres my code in PHP to push: <?php $token = '504e06eeeeee26b82c084a...

iPhone - Change indentation row for a cell while editing.

Hi. I'm trying to change the indentation for a custom UITableViewCell's content (namely, a image, a button and a label) when a UITableView is being edited. I tried changing the cell's indentation width and level like this [cellToCustomize setIndentationLevel:1]; [cellToCustomize setIndentationWidth:20]; and it took me nowhere. I als...