iphone

Order of additional screenshots when submitting app in iTunes Connect

I'm currently submitting my app for review and I've uploaded the main screenshot, but am unsure of how to get my additional screenshots to appear in the correct order. You have to select them all before uploading and there's no indication of what order they will be in! Can someone let me know whether you need to select the screenshots i...

error cannot find interface declaration for 'NSManagedObject', superclass of

can anyone please help me to solve the error error cannot find interface declaration for 'NSManagedObject', superclass of plz ...

Web-like tabs for the iPhone

What is the best approach to implement tabs that look like web applications on the iPhone, like the screenshot below (notice the "Checkin-Info-Friends" tabs)? These are not part of the UIKit standard library, but seems to be very common lately. I've spent considerable time developing applications for the iPhone, but not developing contr...

sqlite3_prepare_v2 throws SQLITE_ERROR in iPhone code

I have a piece of code that used to work, and other iterations of it that DO work within the same app, and have compared code, and they are identical in structure. This is driving me INSANE!!!!!! In this instance, sqlite3_prepare_v2 is throwing one of those useless SQLITE_ERROR exceptions. Apparently, it can FIND the database, and OPE...

How to make the UIKeyboard appear as part of a view?

Apple apps like Mail, Contacts, and SMS make the UIKeyboard appear as part of the view. The UIKeyboard slides in with the view instead of appearing as a separate animation. I have tried to recreate the same behavior calling [myTextField becomeFirstResponder] in different places like viewWillAppear:animated, viewDidLoad, loadView, naviga...

Cocoa error 256 core data

I have error "Cocoa error 256" when I try to save data. How to fix it? And what problem? ...

What is the right code pattern for NSNumberFormatter?

What is the right code pattern for NSNumberFormatter? There are many example on the Internet (including this one: http://mac-objective-c.blogspot.com/2009/04/nsnumberformatter-some-examples.html) where the NSNumberFormatter is allocated and initialized each time it is needed. Yet some other examples in the Apple Documentation (includi...

How can I hide the UITableView that UISearchBar created?

In my iPhone application I am writing I have a search bar and search display controller. When the user types something in the search box, the table view loads and is now visible. When a user clicks on a row, I would like to get rid of the tableView and go back to the view where the user originally clicked the search bar. I have searched ...

Web App: White screen between default image and rendered page

I'm using apple-touch-startup-image to provide a default image for my webapp. For a tiny part of a second, between the default image and the rendered page, the screen goes completely white. Here is a trivial example: http://jaka.kubje.org/temp/iphone-default-blink/ Any ideas? ...

How to create a moving balls application in iPhone

Hello all, I want to create an application where balls keep moving on iPhone screen and they when they collide they gets a rebounding action. Every minute I want to add 1 balll upto a limit. Is there any easy way to do it or anyone have done this kind of application. ...

objc_setAssociatedObject unavailable in iPhone simulator

In the 3.1 SDk, Apple added support for associated objects. However, the simulator will not compile code that includes references to objc_setAssociatedObject, objc_getAssociatedObject, et al. (Undeclared errors) Is there away around this? Can I make the iPhone simulator compile this code? I would hate to have to do all testing on the ...

Iphone 3d Animation Problem

Hey guys. I recently posted my problem but neither did I get an answer here or elsewhere, nor can I find my post again... Anyways, I want to try to state my point clearer, hoping you can help me this time maybe. The part of code, this is about, looks like this: CABasicAnimation *animation = nil; CATransform3D transform; animation = ...

How do I kill a back ground running app in iphone?

Hi All, I just want to know how to kill a back ground process/app in iphone. Just like in Auto Lock SBSettings where, the "process" toggle is able to list all the back ground process and allows user to kill any of them. Thanks in advance. Thanks 'refulgentis', 'Chuck' for your quick responses. You're true and also I know that the A...

need to dim iphone screen while my app is running

I don't want the phone to go to sleep so I am using: [ [ UIApplication sharedApplication ] setIdleTimerDisabled:YES ] ; but I do need the phone to gray out its screen to not waste the battery. I have already seen this question http://stackoverflow.com/questions/916656/how-can-i-dim-the-view-in-an-iphone-application, but need more ...

MFMailComposeViewController problem

This problem is probably not specific to MFMailComposeViewController, but that is where I am having the problem... I am building the NSString "myEmailString" for the messageBody of the MFMailComposeViewController and storing it in an iVar before displaying the MFMailComposeViewController as a modal view controller. I pass the string i...

Warning when communicating context from controller to NSView with custom methods

Coding against UIKit for iPhone. Setup, with relevant detail: SomeView.h: #import <UIKit/UIKit.h> @interface SomeView : UIView { SomeObject *myObject; } @property (assign) SomeObject *myObject; -(void) doSomething; @end SomeView.m: #import "SomeView.h" @implementation SomeView @synthesize myObject; - (void)doSomething { ...

On iPhone: Find out what song is currently playing? (in the iPod music player)

Apple released access to the iPod Library in the iPhone SDK 3.0 and I'm wondering if it's now possible to understand which song is currently playing? Title, Artist, Album suffices. Example: User opens an app and the app can know which song is playing in the background. Has anyone had any experience with this? Thanks a bunch! ...

iPhone - Is it possible to override silent mode or have a recursive alert sound with push notification?

Hi, I'm trying to write an application for the iphone where the user will be notified of events such as deadlines. I am looking to override the silent mode and possibly have the notification sound loop until the user activates the application. Any info or documentation would be appreciated. Thanks. ...

Clear MKMapView's cache of tiles?

I'm working on an iPhone game that uses an MKMapView as the playfield. After only a couple of minutes of play the app inevitably starts to get sluggish and eventually crashes due to low memory. After digging around the culprit seems to be that the map view constantly demands more memory. The game requires a lot of zooming and panning of ...

Issue with Transparency

Hi, We have an issue with transparency. While writing an image to Context with gradient, transparency (which is unwanted) is getting applied. We are not sure why this has been getting applied. We need the context to be "ONLY" with Gradient but not with "TRANSPARENCY". Attaching the snippet of the code for your reference. - (UIImage *)...