iphone

Flip transition in iPhone

I am facing problems in flipping views in iPhone. I have two views in appDelegate. I want to flip them once user clicks on a button. I have the following code: CATransition *transition = [CATransition animation]; transition.duration = 0.75; [transition @"twist"]; [transition setSubtype:@"fromRight"]; transition.timingFunction = [CAM...

Writing to SQLite3 on iPhone simulation.

I have an app that is running in the simulator. I read and write from a sqlite3 data source. However, if i restart the app, then all datg that i had previously wrote to the db is lost. The data is always in its original state. Now back when i was developing this app i thought i read somewhere that data can not be persisted via iphone si...

opengles view switching problem

Hi I´m trying to make simple game using OpenGLES. I have two EAGLViews(menu and game view). Each view has its own viewController. Initializing of the views is done by initWithNIBName method of the viewController. And when I want to show the view, I simply use addSubview method of the main window. The game view is initialized only once ...

What is something you wish you had known sooner about the iPhone SDK?

I'm interested in picking up some tips and tricks while learning about the SDK. What I am looking for something that you wish you had known getting started that would have benefited you now. ...

how to draw a maze using openGL for iphone development?

Hi, I was wondering if anyone can get me started on how to build like a maze using openGL. Would i need to write code to draw the maze or is it like painting a picture in a separate window? would i need to create a game engine to start with this? I'm doing this for iphone development so any suggestions for that would be a great start for...

why is textFieldDidEndEditing: not being called?

I'm playing with writing my first iphone app; SDK 3.0. I've got a UITextField, and when text gets entered into that, I want to obtain the doubleValue from the text field and perform some computations and display them in a UITableView. The delegate for the UITextField adopts the UITextFieldDelegate protocol, and implements both textFiel...

Linking to an iphone App

Hi All :) I have an App i am developing. Part of the functionality allows the user to send an e-mail to friends from the App. In this E-mail i would like to have a link to my App in the iTunes store. I was wondering if it is possible to do this before your app has been submitted? Or would i have to send an update as soon as the app ...

iPhone icon - Red # indicators.

Anybody know how to implement the red number indicators (like the email count notification)? I cant seem to google this up anywhere. Thanks! ...

Accidentally calling the same obj-C object twice

I want to make two separate asynchronous internet lookups. However, they are stepping on each other and I'm not sure why. When I dig around, it appears the two lookups are both operating on the same object (symptom: the second call is resetting "thisPage" set by the first call). Maybe this has something to do with delegate usage (stil...

What kind of thing is a fooBar.category file in iPhone OS?

I recently opened the package of an iPhone app because I was curious how all that stuff looks like when the app is built. There, I found something like fooBar.category. What's that? I don't think it's a "Category" in terms of Cocoa, isn't it? ...

How can we use CSS for developing native iPhone app?

Hi All, I am not developing any web app. I am trying to use CSS in developing iPhone native app. I am confused about where to include it and use it . Whether to use it in the viewDidLoad or applicationDidFinishLaunching . I am really getting tired of using the same UI look. Can any body help me? Thank You All. ...

How to animate Layers in iPhone?

I have seen a google application in iPhone. Application has following facility, There is a button at bottom right corner, by clicking on that, entire map folds as if we have folded a page, I am eager to know how to make this animation. If you have any idea plz tell me. Thanks for your help to me. ...

Forming Communication Between Server and an iPhone application.

hello all, Is there any tutorial or blog or some documents which helps in learning how to communicate server from my iPhone application. I just want to do a simple thing. Which is a page update. Like I have a Label which needs to update to one particular name stored in my database and this database resides on a server. So how to do t...

UITableViewCell Custom Drawing and Animating when Entering Edit/Reorder Mode

I am trying to do something very similar to this post. Starting with Atebits Fast Scrolling in Tweetie post I have a UITableView subclass that does all of it's drawing in the drawRect: method of it's contentView. This works perfectly and is super fast. What I am trying to do now is animate the transition from editing to not-editing. ...

What's the trick to use otool on the mac?

I want to see the headers of an application. I try this: myMac:~ me$ /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/otool [-fahlLDtdorSTMRIHvVcXm] /Developer/Platforms/TheIPhoneApplication -f The file is definitely there. but it tells me "no file found". Any idea? ...

Best Mobile Application Analytics Package?

I'm developing on Android at the moment and want to know the best mobile app analytics for android and iPhone. I only need usage stats at the moment. ...

Which version of the iPhone 3.0 SDK should I download?

In the developer center there are two different downloads: iPhone SDK 3.0 (Snow Leopard) iPhone SDK 3.0 (Leopard) I have Mac OS X 1.5.7, which I believe is Leopard. But when I download the one for Leopard it tells me it can't "mount" it. When I download the one for Snow Leopard, it downloads and installs fine... However, once I'm usi...

highlight UIButton - without multiple images

I have been gone through following link http://stackoverflow.com/questions/351919/how-to-programatically-highlight-a-uibutton in first two lines of their code, i found UIImage* normalImage = [infoButton imageForState:UIControlStateNormal]; UIImage highlighted = [_infoButton imageForState:UIControlStateHighlighted]; It seems that they...

Is there a way to get a list of all classes in an iPhone application?

I wonder if it is possible to see what classes an iPhone App is made of. I don't need the header or implementation contents, just the class names would be fine. Is otool my friend here, or are there better tools to find this out? ...

automatic scroll - a scroll view on Touch of textField - iPhone

I have many textfields in my Application which are in a scrollview. What i need is when user touches on a textfield, scrollview should scroll in such a way, so that that textfield should not be behind the keyboard. i have seen these sample code site. but forgot. And right now I am not able to find it through google. Help me. thanks ...