iphone

Set the orientation of iPhone's MoviePlayer in a Webview

Is there any way to set the orientation of a movie that is opened in a Webview? I can do this programatically through the app, or I can add a parameter to the Quicktime loaded in the HTML. ...

add "Now Loading" before UITabBarController tab select?

Hello everyone - One of the tabs of my UITabBarController takes some time to work before it can be displayed. What is the best way to display a "Now Loading" before the viewcontroler completes its work? I tried setting up a "now loading" view in the tab's viewController's viewDidLoad method, then I do the work in viewDidAppear, settin...

iphone web page transitions

I am developing a web page for iPhones and iPod Touch's. I am using the Universal iPhone UI framework. I need to have silding page transitions, but can't seem to get it working. Is there a good javascript framework I could use that would make this easier? I've done a lot of normal web dev with jquery, but it doesn't seem to like the ...

Why does Cocoa return an empty string occasionally?

I have some code in my application that looks something like this: char *hash = (char*) sqlite3_column_text(get_bookmark, 0); NSString* postHash = [NSString stringWithUTF8String:hash]; This works for me every time; I've never seen it not work. Most of my users do not experience problems (as far as I know). However I find that postHash...

UIViewController memory leak issues

Similar to the known memory leak issue regarding creating and destroying an instance of the UIImagePickerController, I'm finding similar problems regarding instances of the UIViewController class. The recommended way to use the UIImagePickerController is to create the instance once and keep it around for the lifetime of the application,...

How to render animation or effects using Core Graphics

I want to draw a projectile of a cannon moving and explosive effects (just simple broken bits flying around). How should I approach this using Core Graphics (on iPhone)? I am using an NSTimer to call a render method and update the animated projectile or explosive effects and I have no problem drawing each individual pieces (such as fil...

Finding the bottleneck in a OpenGL application on the iphone.

I'm trying to track down the bottleneck in an IPhone OpenGL game I'm writing. The game itself is in 2d, and contains a couple hundred textured sprites, each alpha blended. In terms of textures, I only use a single 512x512 atlas that I bind once, so I don't think its a bandwidth issue (at least not from the upload of textures). I used i...

Submit ajax form on keyboard close without a submit button on the iphone?

I'm having trouble with AJAX form submitting on the iphone. I have a search field at the top with no submit button. My plan is to submit the form when the user hits "Go" or "Search" on the iphone keyboard. Anybody got any ideas? Edit: I have the ajax working but I cant seem to get the keyboard to close after I press search. Here is the...

How can I retrieve random words from the iPhone's dictionary?

Is there a way to retrieve words randomly from the built in Dictionary through the SDK? I can provide my own list of words but using the built in Dictionary allows for easy localization. ...

iPhone Development Provisioning Assistant Step 3 public/private Key problem

Hi I am using the Development Provisioning Assistant At Step 3: Verify your private and public keys in Keychain Access, I have the "iPhone Developer: XXXXXXX" certificate in the Keychains->login, but I can't find any keys. If I click Category->Keys I see nothing. What should I do to make it has the private key and public key there? ...

In OpenGL ES on the iPhone, how do I scroll two images?

Using UIView and Quartz has proven to be too slow for my 2D game ...

How to customize a mutiline label on iPhone?

How to let a label show multi-line strings? e.g. The given string is @"HelloA\nHelloB\nHelloC\n". How to show it like: @"HelloA" @"HelloB" @"HelloC" ...

What is the tail truncation mark on iPhone?

I want to add some tail marks to several strings. Are there any marks like '\n' on iPhone? ...

How can I create a Installer package for iPhone ?

How can I create a Installer package for iPhone ? ...

iPhone unread counts on tabbar

Which is the best way to implement on Cocoa Touch the unread counts on a icon on a TabBar? I want to mimic the SMS or Mail application behavior, showing the unread message count to the user of my application, with a red dot containing a number. ...

Calculating pixel size on an iPhone

Is there a way in the iPhone SDK to calculate the size (in millimeters) of a single pixel? ...

AppStore, what happens if your app gets approved?

So i'm developing an application that has to be released the same day the website launches. since we don't have an exact control when the app will be approved i'm putting it up for approval now. but what happens then ? is it automatically in the app store ? can we (or do we ..) keep the application on hold .. when do we need to put a pr...

What are some options for XML on the iPhone?

I have implemented NSXMLParser in my app and I am reviewing alternatives. My complaints about NSXMLParser are that it's convoluted to implement for simple files, and it's not the zippiest thing around either. So far I've identified: TouchXML Objective-XML Any others? And what's your experience with these? Thanks for your input! ...

In OpenGL ES, how do I convert screen coordinates to world coordinates?

This is for a 2D game so there are only an x and y axis. The game is in landscape mode on the iPhone. I wish to be able to set the screen x and y coordinates of where to render a texture. ...

How do I reset (i.e. un-zoom) a UIScrollView?

I have a UIScrollView that contains an image and a segmented control that allows the user to switch the image inside of the ScrollView. If I just swap the image out inside of the UIImageView, it will display the new image in the zoomed-in state. How do I reset the UIScrollView back to its un-zoomed-in state? ...