iphone

Blocking UI Interation whilst image is downloading

Im using NSThead and have a loading screen whilst im downloading images form the web to display, whist this is happening, could i stop the UI touch being registered? I have buttons on that view and when the loading screen is up, its basicllya text label which has a slightly transparent background. but if someone clicks on it, it register...

iPhone, OSX: How to dynamically test for available global variables in frameworks

As my iPhone app can run on both OS 3 and 4, I need a way to safely test for iOS 4 SDK features. I like to avoid checking the [UIDevice ... systemVersion] string (I wonder why Apple failed to provide a numeric value here for easy testing, as it's available on OS X). Anyway. The usual clean way to test for SDK features is to check if a ...

Django @login_required views for JSON data API's used from iPad/iPhone/Android?

Django @login_required views for JSON data API's used from iPad/iPhone/Android? In my Django webserver, I have built JSON data API's that I want to access from mobile devices: iPad/iPhone/Android. I'm using the iPad/iPhone ASIHttp Library. How do I login users from an iPad/iPhone so my data API's can use the @login_required decorator?...

How to block UI in IPhone

Hello A simple question: how can I block UI thread without using sleep? Just to be clear: I understand that UI will freeze for user, but that's the idea... Can I run empty RunLoops? Any other ways. thank you ...

Upload sqlite file to provisioned iPhone?

I have successfully downloaded an sqlite datafile from my testing app on my provisioned iPhone using the Xcode organizer. How might I upload an sqlite file to the iphone to replace the data store that I am using in my app? ...

Memory Leak in TouchMXL?

Hi all, I'm using TouchXML to parse an XML-stream the following way: CXMLDocument *parser = [[CXMLDocument alloc] initWithXMLString:responseString options:0 error:nil]; [responseString release]; // array holding all the nodes NSArray *directionNodes = [parser nodesForXPath:@"//direction" error:nil]; NSArray *linieNodes = [parser nodes...

Using a UITable in a UIViewController

I've got a UIViewController with a xib view that has a button and a table. Everything is wired up, the data has rows in it etc. But if i click a row and navigate away from this initial screen, then go back, the cell in the table still has the highlighted state on it. Do i need to implement methods other than numberOfSectionsInTableView,...

Update datastore in Google App Engine from the iPhone

I'm working on an app that communicates with Google App Engine to update and retrieve user information, but I can't think of a way to modify elements in the datastore. For example, every user for my app is represented by a User object in the datastore. If this user inputs things like email, phone number, etc into fields inside the iPhon...

Customizing Iphone Keyboard

Is there a way to customize the iphone keyboard? Say I want the number pad with a comma button and a period button added to it. ...

Date description

How can I retrieve the dates of my events from my iPhone? I've just got an sqlitedb file left. Which was luckily stored on my pc. But how do I decipher which date and time it is? Below is the table of my calendar... http://img696.imageshack.us/i/calendersqlite.jpg/ ...

App doesn't get fully launched with Instruments (Allocations) on the device

Instruments launches my app on the device and listens to the allocations. (In "Allocations" mode) It launches extremely slow. Then the app quits after about 35 seconds. On the simulator Instruments runs fine. Is there a solution to this? Is iOS killing my app? How am I supposed to debug this if Instruments increases launch time that much...

IPhone add UINavigationController to subview

Hello, I have been trying to add this UINavigationController to a subview of my form... all I am getting is a large grey screen. LiteViewController *lite = [[LiteViewController alloc] initWithNibName:@"LiteViewController" bundle:nil]; [self.view addSubview:lite.navigationController.view]; It should add a full screen navigation contro...

Changing dev iPhone app's bundle identifier - retain core data store?

I need to change the bundle identifier of my iPhone app before I can upload it to the app store. However, I also have data in my Core Data store which want to continue using even after I change the bundle identifier. However, it seems that the bundle identifier is how the iPhone knows whether apps are identical with one another, so I end...

NSMutableString defining and redefining

I am at a loss as hot to properly initiate a NSMutableString, I have tried: NSMutableString *string = @"some text"; which is the same method one assigns a string to an NSString but have hade no luck. Additionally I have not been able to figure out how to redefine the string contained with the NSMutableString. I would imagine it would ...

Base SDK Missing, CFNetwort.framework not listed

HEllo, I have just installed xcode 3.2.3 and SDK4. I need to use ASIHttpRequest and then follow the instruction setup for this. I need to add several frameworks and lib (as described here: http://allseeing-i.com/ASIHTTPRequest/Setup-instructions but I cannot find CFNetwork in the list. xcode only shows "Base SDK Missing" in the list wher...

Objective C - Initializer element is not constant

Really beginner question here. I have an NSArray of images which in its last line has an error in Xcode saying that the "initializer element is not constant". any help please? ...

Very strange behavior with commitanimations after switching xibs then rotating phone...

I have a very strange problem and I am not sure what is causing it. I have some animations on my iPhone apps initial view controller. These are basic and are created using this type of code... [UIImageView beginAnimations:nil context:NULL]; [UIImageView setAnimationDuration:30.0]; [UIImageView setAnimationRepeatCount:1e100f]; [UIImage...

iPhone ... If you have an NSArray of NSMutableDictionaries, does the Array hold a ref to the dict or a "copy"?

Okay, coming from a perl background I am used to Arrays holding refs to Hashes (Dictionary in iPhone parlance). What I would like to know is this: If I have a NSArray of NSMutableDictionaries. Say I added the following NSMutableDictionary to an NSArray: [theArray addObject:[[NSMutableDictionary alloc] initWithObjectsAndKeys: timest...

Beginning iphone development

Possible Duplicate: Beginning OS X & iPhone Development: Reference texts I am struggling with beginning iphone development using Objective-C. What are the best resources I can use for learning iphone development from scratch ? Update: Sorry for the dup question. After reading the other threads, I've decided to purchase Hea...

How to rotate a circle clockwise and anticlockwise?

Basically this is my code which draws a circle with 4 different colored and equal sized quadrants.What I want to do is to rotate this circle clockwise and anticlockwise i.e. clockwise' when i touch circle and drag it a bit in clockwise direction and vice versa. I have made circle through core graphics.One more thing is that the circle mu...