iphone

UIImage and UILabel outside UiTableView

Hi all, look at this image: I know how to add UITableView with grouped style and how to add label in any table cell. But how can I add image and labels on top on the view, like screen. ...

UIWebView Expose Objective C to JavaScript

How would I expose an Objective C method within JavaScript when using the iPhone SDK when using the UIWebView? Any help would be appreciated! ...

What' the best way to save iphone app setting?

I'd like to allow user to change the setting of app. But I am not sure where shall I save the configuration. Is there any local space allocated for app? Thanks. ...

The image which UIImagePicker take from UI is truncated on top and bottom

I am using UIImagePicker to take photo and save the photo. But appears the photo it takes was truncated on top and bottom, which was top and bottom menu when UIImagePicker taking the photo. I am wondering how to take the whole screen of the photo. Thanks. ...

Best way to store static reference arrays/dicts in Cocoa touch

I have several arrays of arrays or arrays of dicts that I would like to store in my iPhone app. This lists are static and won't be modified by the app or users. Occasionally they may be displayed but more likely they'll be iterated over and compared to some input value. Would the best way to store these arrays be a CoreData/SQLite dat...

Is parentViewController always a Navigation controller?

I was kind of scratching my head at this a week ago, and now with a little bit more Cocoa experience under my belt I feel like I have an inkling as to what might be going on. I'm making an application that is driven by a UINavigationController. In the AppDelegate, I create an instance of this class, using "page 1" as the Root View Cont...

Error Installing iPhone App on Device

I set up all my certificates and keys today and am trying to run my project on my iPhone. I'm encountering this strange error: Your mobile device has encountered an unexpected error (0xE800003A) during the install phase: Verifying application Poking around the Apple Developer forums, I've attempted to set new certificates and provi...

How to stretch the image size in iphone UIImage or UIImageView

Hi I'd like to show the image in iphone, but the image too big. I'd like to stretch it to fit the iphone screen, I can't find any class to handle it. Any suggestion? Thanks. ...

Programmatically add custom event in the iPhone Calendar

Is there any way to add iCal event to the iPhone Calendar from the custom App? ...

How can I deploy an iPhone Application from Xcode to real iPhone device

How can I deploy an iPhone Application from Xcode to real iPhone device without having an Apple 99$ Certificate? ...

iPhone Image process

I have taken the image from UIImagePickerController, but the file looks too big to be transfered through internet, I'd like to resize the images. I couldn't find any method related to the image process. Any recommendation? Thanks. ...

Best Programmer Calculator for iPhone

What is the best programmer's calculator application for the iPhone? ...

Slicing up a UIImage on iPhone

Objective: take a UIImage, crop out a square in the middle, change size of square to 320x320 pixels, slice up the image into 16 80x80 images, save the 16 images in an array. Here's my code: CGImageRef originalImage, resizedImage, finalImage, tmp; float imgWidth, imgHeight, diff; UIImage *squareImage, *playImage; NSMutableArray *tileImg...

How can I integrate the Picasa API into my iPhone application?

I have tried to integrate the Picasa API on iphone, compiles fine, but I am seeing the following error in launch. dyld: Library not loaded: @loader_path/../Frameworks/GData.framework/Versions/A/GData Referenced from: /Users/jacksu/Library/Application Support/iPhone Simulator/User/Applications/9A7E3F54-022F-4771-BD6A-E458F5545144/Picas...

Setting iPhone wallpaper (locked screen background) programmatically?

I have an app which could benefit from the user being able to choose to set an image as the wallpaper (the background image on the "slide to unlock" screen). Is there a way for non-jailbreak third-party apps to do this? A search for "wallpaper" in the iPhone documentation returns nothing. ...

-[NSOperationQueue operations] returns an empty array when it shouldn't?

I'm writing an application that does async loading of images onto the screen. I have it set up to be NOT concurrent (that is, it spawns a thread and executes them one at a time), so I've only overridden the [NSOperation main] function in my NSOperation subclass. Anyway, so when I add all of these operations, I want to be able later to ...

How do I make UITableViewCellAccessoryDisclosureIndicator visible in black background?

Hi I wrote this cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; in this method - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath; but I can only see it when I select that cell otherwise it's not visible.and it work perfectly when background is white. I am sure t...

Sometimes Accelerometer delegate method is not called

I have an application that uses the accelerometer. Sometimes, the application will launch without the accelerometer data updating. Relaunching the app, sometimes the problem persist, sometimes it doesn't. And even weirder, sometimes I can try 10 times and everything works as expected. Is this a bug, or maybe something I am missing. Debug...

What fonts do iPhone applications support?

Hi, I found a list of iPhone supported font here http://daringfireball.net/misc/2007/07/iphone-osx-fonts But I just wanted to confirm that, can we use all this fonts in application, or we are restricted to some class of fonts. thanks in advance. ...

-[UITextField isFirstResponder] returns false even though field is currently editing

In my view controller's -viewDidLoad method, I call [myTextField becomeFirstResponder]; This works like a charm, opens the keyboard and myTextField gets focus. I have a button with a target action (the action is in the same controller) that checks [myTextField isFirstReponder] - but it always returns false (er, NO in Cocoa terms ;)). ...