iphone

How to render consistence and smooth moving animation on iphone / ipod / iphone simulator.

I am trying render a simple animation(object movement animations) on iphone. I used opengl for object rendering. Movements appears to be smooth on the simulator. But if I used same code in the ipod, object movement is slower. In the iphone it is still slower. I googled a bit and found 'frame rate independent rendering method', which tau...

iPhone Development - CoreData runtime error

I'm facing a strange CoreData issue. Here's the log: 2010-04-07 15:59:36.913 MyProject[263:207] <MyEntity: 0x180370> (entity: MyEntity; id: 0x17e890 <x-coredata://0F55C533-41BD-4F09-9CCA-0CB304CAB065/MyEntity/p380> ; data: <fault>) 2010-04-07 15:59:36.918 MyProject[263:207] *** Terminating app due to uncaught exception 'NSObjectInaccess...

Can I compile an iPhone app on one computer and sign it on another?

Suppose my client doesn't want me to own his iPhone Distribution Certificate, is there a way I can send him the compiled app and let him adjust all App Id, Provisioning etc parameters, then sign and submit it? How do I do this? ...

Custom event loop and UIKit controls. What extra magic Apple's event loop does?

Does anyone know or have good links that explain what iPhone's event loop does under the hood? We are using a custom event loop in our OpenGL-based iPhone game framework. It calls our game rendering system, calls presentRenderbuffer and pumps events using CFRunLoopRunInMode. See the code below for details. It works well when we are no...

Subview Doesnt AutoSize When Added to Root View Controller

Hello, I have a root view controller that will have up to 10 or so subviews. I am implementing autorotation/autosize accross the entire app. My problem is this: - When I allocate all the view controllers and add each as a subview to the root controller during startup, everything works as it should. The only problem is that each view c...

How to draw iphone message like add image.

I want to draw like that. How to draw like that? Do I use Quartzcore? please advice for me. ...

Close event in Safari iphone ?

Hello, Is there a way to know that the user is closing the navigator, and/or the tab in Safari for iPhone, so that I can save data to localStorage, or do I need to do it for every input ? ...

String comparison in Objective-C

Hey, I've currently got a webserver set up which I communicate over SOAP with my iPhone app. I am returning a string containing a GUID and when I attempt to compare this with another string I get some strange results: Why would this not fire? Surely the two strings are a match? Thanks ...

iPhone app crashes on start-up, in stack-trace only messages from built-in frameworks

My app some times crashes at start-up. In stack-trace only messages from built-in frameworks. An excerpt from a crash log: OS Version: iPhone OS 3.1.3 (7E18) Report Version: 104 Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: KERN_PROTECTION_FAILURE at 0x000e6000 Crashed Thread: 0 Thread 0 Crashed: 0 CoreGraphics ...

How to identify iphone , ipad ,ipod touch, iphpne simulator while programming in 3.2 version ?

Am unable to identify the device models (iphone , ipad ,ipod touch, iphpne simulator) while programming (in 3.2 version). Alreay am tried with UIDevice Class and some other means, but am unable to get model as ipad when connected to ipad. every time it is giving model other than ipad. So can any one please help me out. Thank you. ...

Best approach to make Page Flip animation on iPhone (like magazine)

Hi all, What would be the besta approach to make one oage flip like a real magazine, like I put the finger in the corner of the screen then flip the page... Like this video: http://www.youtube.com/watch?v=dy4Y9j7COgg&amp;feature=related Is it a sequence of images ? all images are in one view or Imageview ? Or there is another way to ...

Building a Universal iPad App - Where is the device recognition code?

I noticed that when I create a new project in XCode for a Universal iPad/iPhone application, the template comes with two separate App Delegate files, one for each device. I can't seem to locate the place in code where it tries to decide which app delegate to use. I have an existing iPhone project I'd like to port to iPad. My thinking ...

Auto launch the video player in Android from the browser like an iPhone does.

Hi All, I have just created and iPhone web app, which has some x264 (mp4) video files on it. When I link directly to the file on the iPhone and the user taps the link, the video player is loaded and the video starts playing. Using the app on an Android phone causes the browser to download the video instead of just playing it. Is there ...

MonoTouch iPad iTunes Submit - Beta?

Using MonoTouch 2.0 and MonoDevelop 2.2.2 I created an iPad app. It is set to the 3.2 OS When I submit the app it says that this binary was created with a beta version. I have the newest XCode/SDK ...

Get json from Twitter API in iPhone using JSON Framework

Hello now I'm trying to get json data from Twitter API using iPhone. I'm using JSON Framework. This code has good results. #import "JSON/JSON.h" NSString *urlString= @"http://api.twitter.com/1/statuses/public_timeline.json"; NSURL *url = [NSURL URLWithString:urlString]; NSString *jsonString = [NSString stringWithContentsOfURL:url encodi...

No Debug information of an iPhone app

Hi all, I wrote an iPhone app which uses a third party library. I crosscompiled this library successfully and everything works smoothly. But when I want to debug the application, it would make sense to also be able to debug the library. So I compiled also the external library with debuging information (usign the gcc option -ggdb). But w...

iPad Web App: Detect Virtual Keyboard Using JavaScript in Safari?

I'm writing a web app for the iPad (not a regular App Store app - it's written using HTML, CSS and JavaScript). Since the keyboard fills up a huge part of the screen, it would make sense to change the app's layout to fit the remaining space when the keyboard is shown. However, I have found no way to detect when or whether the keyboard is...

How can I simply change a class variable from another class in ObjectiveC?

I simply want to change a variable of an object from another class. I can compile without a problem, but my variable always is set to 'null'. I used the following code: Object.h: @interface Object : NSObject { //... NSString *color; //... } @property(nonatomic, retain) NSString* color; + (id)Object; - (void)setColor:(NSSt...

Play sound in settings.app

Is there any way to get sound playing when user taps on a row in multi value selector of my app setings page on settings.app? ...

iPhone: CoreGraphics and memory management

Can someone tell me what I am doing wrong here? I use this method to flip through pages in a PDF. But something in the code seems to not be released properly because every-time I pull a PDF page that contains an image my memory footprint increases. I am fairly new to CoreGraphics, and can't for the life of me figure out where this method...