iphone

iPhone SDK - How to Tell if a Text Field Has Text?

Sorry for the simple question but I feel like there's a smarter way to do this: if ([txtFldTo.text length]>0){ //do something } else { //do something else } where txtFldTo is an IBOutlet UITextField connected to a text field on the interface. ...

iPhone Development - restrict user interaction with application and show a progress indicator

I have a case where i pull information from a server. My application has both a tab bar and navigation buttons. I want the application to show a progress indicator and disable all other controls so that user can't jump around while the data is being pulled from the server. How can i achieve this? One approach i have in mind is to show a...

How can I create a count down Timer for cocos2d ?

Hello, I am developing a 2d iphone game by using cocos2d. I need a countdown timer. Plz tell me, How can I create a count down Timer in cocos2d ? ...

Accessing the iPhone's USB port?

Is there any way for developer to send data to the iPhone's USB port? ...

Determine device (iPhone, iPod Touch) with iPhone SDK

Is there a way to determine the device running an application. I want to distinguish between iPhone and iPod Touch if possible. ...

How do I reset after a UIScrollView zoom?

I have a Graph being drawn inside a UIScrollView. It's one large UIView using a custom subclass of CATiledLayer as its layer. When I zoom in and out of the UIScrollView, I want the graph to resize dynamically like it does when I return the graph from viewForZoomingInScrollView. However, the Graph redraws itself at the new zoom level, ...

How can I speed up or slow down a background music track with iPhone SDK?

Is there an easy way to control the playback speed/tempo of a sound file loop played using Audio Queue Services? For example, if a game is playing background music, I want to make the BGM speed up as time runs out, but without changing the pitch of the music. Thx! ...

MIDI player/synthesizer library for the iPhone

Does anyone know if there is a free/cheap MIDI player/synthesizer library that I can incorporate into my iPhone application? As I understand it the iPhone doesn't have native support for MIDI playback. To work around this limitation I've created a bank of .caf sound samples that I playback myself but I'd really like to improve the im...

iPhone development books

I've looked on SO and it seems that most people have been recomending books as the best iphone development resource due to the lack of resources on the web. I've seen the book the The Pragmatic Programmer: iPhone SDK development been recomended a few times. I'm planning to go buy a couple of books. Which should I go for? Please give rea...

Saving a View as a Photo in iPhone App

Is there an easy way to save a view to the Photos library in an iPhone app? ...

iPhone Development - Setting UIWebView font

I have to show rich text that i pull from server, so i'm using UIWebView. Now the problem is that i have no control over the font which is used in UIWebView. How can i change the font to use system font (making it consistent with rest of the application)? I'm doing something like this at the moment: myRichTextView = [[UIWebView alloc] ...

SQLite: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error: failed to open database with message 'not an error'.'

I am making an app with many database operations. Since SQLite caches data, in my applicationDidReceiveMemoryWarning method, I am closing the database and opening it again to delete the cached data. When the do this, I get this error *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error: failed...

Why is this OpenGL ES code slow on iPhone?

I've slightly modified the iPhone SDK's GLSprite example while learning OpenGL ES and it turns out to be quite slow. Even in the simulator (on the hw worst) so I must be doing something wrong since it's only 400 textured triangles. const GLfloat spriteVertices[] = { 0.0f, 0.0f, 100.0f, 0.0f, 0.0f, 100.0f, 100.0f, 100.0f }; ...

Passing a parameter in setAction .

I have the following code : [replyAllBtn addTarget:self.target action:@selector(ReplyAll:) forControlEvents:UIControlEventTouchUpInside]; (void)replyAll:(NSInteger)tid { // some code } i need to send a parameter to the ReplyAll function . I Have found no examples for this As i am new to objective C and iphone programming , any ...

Interface Builder caching bad data (voodoo)

Sometimes IB will hold onto old or bad references, and I cannot seem to remove or edit them. EDIT I have made this a wiki question with the intention of gathering more data on the phenomenon. Answers involving situations where other coders have encountered this are welcome. This happened to me again last night with a table controller. ...

iPhone SQLite DB and Web-based DB synchronization and interaction recommendations

I'm in the process of developing my second iPhone application, and am looking for architectural recommendations on DB handling. The idea is: 1. A database of information is stored on a server (LAMP stack), and information is delivered to the device via JSON. This part has been implemented. The user is able to "favorite" an item in th...

Best way to make an iPhone application multi-lingual

Can anyone tell me the best way to go about making an iPhone application support multiple languages? I am going to put separate versions for each language in the App Store, but what is the best way to represent this in XCode? ...

Stacked UIView Layers Don't Move

I'm developing an iPhone app that moves a UIView layer between other UIView layers based upon the accelerometer. If the topmost layer is the one that's moving based upon the accelerometer, no problem. If I add a UIView on top of it, the movement is extremely delayed. If I add a second UIView on top of it, the movement stops. The update...

Custom iPhone Icon

This is not a technical question, but given that there are a few iPhone developers on here I figured I'd ask. Are there design firms advertising services for designing custom iPhone icons? ...

iPhone provisioning profile problem

My iPhone application runs fine in the simulator. I'm trying to deploy it onto a physical iPhone. When I install the provisioning profile, my Organizer says "A signing identity matching this profile could not be found in your keychain." I can't resolve this. What do I do? ...