iphone

UITableView animation issue

Hi I have a table on a page, but it doesn't take up the entire screen (about 1/3). At some point I would like to show something above the table, but keep the view below the table as it is. This isn't really the problem though. I use a UIView animation to change the size of the table's frame and move it down. The issue is that when the ...

Are there any game engines for iPhone?

Are there any game engines for iPhone? ...

iPhone Dev: MediaPlayer not playing video (only audio) on subsequent plays

I am working on an iPhone application that uses a MediaPlayer to play a couple different videos. It works great for the first video but when I try to play another the screen stays black and only the audio plays. Does anyone have any idea why this might be happening? Here is my code: -(NSURL *)movieURL { NSBundle *bundle = [NSBundle...

Website Theme for IPhone - What are The Basic Ingredients?

Has anybody made a website theme for the iPhone? Please let me know any tips or resources. Here's my theory: How to make a website theme for iPhone Create a website theme designed for desktop monitors. Try not to make any element larger than 320px (iPhone screen resolution). Create 2 style sheets. One for desktop monitors and another...

Core Data XML import/export of single object

With Core Data, specifically on Cocoa Touch, is it possible to export and import individual objects in XML format (irrespective of the underlying store format, ideally)? I'm asking this because I'm using Core Data to manage my object graph anyway, and I need to send and receive my objects in XML format with HTTP. So it would be conveni...

How does one design the datasource for a UITableView in order to sort with a UISegmentedControl?

I am in the process of designing and coding an iPhone application to display movie times. I currently have a Movie Class which contains: NSString title NSSDate releaseDate NSSDate score My UI is a simple UINavigationController which has a segmented control as it's title and UITableView to display the Movies setup in Interface Builder...

Why is the iPhone Simulator 3.0 not showing up in Xcode?

I have installed the new 3.0 SDK, but when I start up Xcode, I don't see an option to build for "Device - iPhone OS 3.0" or "Simulator - iPhone OS 3.0" The Xcode About box says I am running: 3.1.2 Is there something else I have to do? ...

UITabBarController with none selected controller

In the 3.0 version of the iPod application (and maybe in previous versions too) when the iPod application is launched after a sync the UITabBarController appears with no tab selected... iPhone iPod loading screen Is there any way to accomplish the same behaviour? or is this just the Default.png displayed by the iPod app at startup? ...

How can I correctly display a png with a gradient using OpenGL ES on the iPhone?

I've tried using pngs with gradients as textures in my OpenGL ES based iPhone game. The gradients are not drawn correctly. How can I fix this? By "not drawn correctly" I mean the gradients are not smooth and seem to degrade to sections of a particular color rather a smooth transition. ...

Two finger swipe gesture

Apple has some sample code here under "detecting swipe gestures". I'd like to detect a two swipe gesture for my application but have no idea where to start. Surprisingly enough I wasn't able to find any samples/examples of similar code. Is there something inherently difficult about the code? Any links or tips you are willing to share wo...

Why is NSCalendarDate in the Simulator SDK but not in the iPhone SDK?

I want to use NSCalendarDate, which exists in /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk/ System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSCalendarDate.h but is not present anywhere under /Developer/Platforms/iPhoneOS.platform What gives? ...

How to take control if we are playing a video /mp4 file in iphone /ipod ??

What I have to do is play a video file in mp4 format. If the device is in portrait mode then it should display the video, but when the user changes the device to landscape mode it should just show an image. But currently when I play a video, it takes control of the whole app; I can't send a notification to any event, and control only r...

customized the UITableView

I'm in the process to create a simple iPhone application that has the "from" and "to" on top on the table view. This is similar to the Google map's direction input bar in the iPhone. What are the best steps to create these non-scrollable input bar? Any help, tips, or recommendation will be much appreciated. ...

UIWebview Prev / Next

I consider my self as an advanced apple developer but right now i have one question i cant over come. The situation is the follwing. In my project (Iphone app) i have a nice webview to allow users to browse some websites and i have prev / next buttons like any browser has. So here comes my question... How do i know when i have prev or ...

How can you search in a UIWebView

I have a UIWebView with html data loaded in it Is it possible to use javascript to search for text in this view? Thanks for any answers ...

UIScrollView ImageView with pins on top

To all, I have a UIScrollView which has a UIImageView. I want to show pins on this imageView. When I add pins as subviews of the ImageView everything is great except for when you zoom the scale transform happens on the pins also. I don't want this behavior and want my pins to stay the same. So I choose to add the Pins to another vie...

Help needed regarding CLCorelocation

Hello everybody, i am developing a GPS application in which i needs to track the speed of the device/iphone ,i am using the CLCorelocation API's Locate me referral code provided by Apple my problem is that the LocationManager does not updates the current latitude and longitudes thus i am unable to calculate the distance as well as the s...

Did iPhone Simulator 3.0 break two-finger div scrolling?

I recently upgraded to iPhone Simulator 3.0, and when I do a two-finger scroll on a div (in Safari or UIWebView), it no longer works. To do a two-finger scroll in iPhone simulator, hold option to get two fingers, hold shift to lock the fingers in place relative to eachother, and then click and drag the div. You can try scrolling the ex...

iPhone - AVAudioRecorder - how can I record to an mp3?

Hi I am using the AVAudioRecorder class available with the 3.0 SDK to record audio in my app. I am successfully able to record to a caf/aiff file. But I would like to record to an mp3. I tried changing some values in the settings dictionary but all I get is a blank file. Is it possible to record to an mp3 using AVAudioRecorder If not...

Which IPhone control would be better?

I have a situation in which user can single tap a control, which show random images, to peek under it, double tap to mark it, or drag it to a box where it snaps to the box if more than half of its body is inside box. I was using UIbuttons (with background image) before and have done the single/double tap thing for them, how to do the dr...