iphone

which UIButton event can act as a mouse over event like in flash

i would like to create a UIButton it will zoom in when mouse over it,can anyone tell me which event can do this ...

Geting Platform info of iphone

Hi There, How can one get iphone system information such as sdk version? The infomration i need is similar to the device information you see when your iphone/itouch is connected to itunes. I can use UniqueDevice to get the serial number but cant seem to find any system properties or request methods in there. Look forward to your thought...

Toggle iPhone's Return key does not work?!

Hi, it is simple to set the Return key programmatically: textField.returnKeyType = UIReturnKeyDone; // This is in the loadView/init-method However, it seems that it is not so easy to toggle that key, i.e. change it from Done to something else depending on, for example, what is currently shown in the text field! That is, a subsequent st...

remote database connection with my iphone application using cocos2d

MCPResult *theResult; MCPConnection *mySQLConnection; //initialize connection string vars NSString *dbURL = @"192.168.0.16"; NSString *userName = @""; NSString *pass = @""; int port = 3306; //open connection to database mySQLConnection = [[MCPConnection alloc] initToHost: dbURL withLogin:userName pass...

Exit iphone Application

Hi There, Is it possible to use objective c to signal for application to close? Regards, Toby ...

Apple's Singleton example

Used the MyGizmoClass example in a iPhone app where I have an object that sets and maintain db info. How do I eliminate the 'MyGizmoClass' may not respond to '+sharedManager' Warning The offending line of code is: NSString *databasePath = [[MyGizmoClass sharedManager]databasePath]; ...

How To Get Values From UISegmentcontroller.

Hi, I Created Segment Control through Interface Builder. Created a IBAction and Linked to Value Changed Option of segment Controller. - (IBAction)GenderBttonAction:(id)sender { printf("\n Segemt Controll"); } When i click on segment controller this method is calling , but how would i get the seleced index value of segment cont...

Can I use CGAffineTransformMakeRotation to rotate a view more than 360 degrees?

I'm writing an iPhone app, and I've got an image which I'ld like to have swirl outwards. Currently my code looks like this (wrapped in a beginAnimations/commitAnimations block): scale = CGAffineTransformScale(CGAffineTransformIdentity, 5.0f, 5.0f); swirl = CGAffineTransformRotate(scale, M_PI); [player setTransform:swirl]; [player s...

iphone - Programmatically set (System-wide) proxy settings?

I am new to iPhone development, so I'm sorry if this is a stupid question. I am developing an application whose purpose will be to route all iPhone activity through my company's proxy. Is there a way to programmatically set system-wide proxy settings in the iPhone (which will also take effect on the 3G connection)? I know there is a w...

OpenGL ES 1.x Shaders

Hello, I am trying to find examples of how to implement a simple shader for OpenGL ES 1.x (specifically for the iPhone). I have never worked with shaders before, but I do understand what they are used for. I think that once I am able to load a simple shader in the simulator I will be able to take it from there and do what I need to do....

Create lightning in OpenGL ES 1.1

I need to create good looking lightning using OpenGL ES 1.1 (iPhone) and was planning on using shaders. However, when I asked about it in a previous question (http://stackoverflow.com/questions/543948/opengl-es-1-x-shaders) I was informed there that this was probably not an option on the iPhone. So now I am back at square one, wonderin...

How would you keep secret data secret in an iPhone application?

Let's say I need to access a web service from an iPhone app. This web service requires clients to digitally sign HTTP requests in order to prove that the app "knows" a shared secret; a client key. The request signature is stored in a HTTP header and the request is simply sent over HTTP (not HTTPS). This key must stay secret at all t...

no more scrollViewDidEndScrollingAnimation delegate after bounce...

hello, My UIScrollView has a strange behaviour. A view controller is a delegate of my UIScroll, during scroll I receive scrollViewDidScroll and scrollViewDidEndScrollingAnimation. All is working. But when the scroll view bounces, I no more receive scrollViewDidEndScrollingAnimation but still receiving scrollViewDidScroll... Do you have...

iPhone or Cocoa: Handling order of multiple HTTP requests

When working with Cocoa/Cocoa-Touch and the iPhone SDK, a typical convention is to build a client which speaks to a server-side web server. One common problem I face when programming is making multiple HTTP requests in sequence, sometimes up to 5-6 requests. The order in which the requests are made is not linear in which they will return...

Objective-C memory management, xml parser and other non-trivial examples.

I know the basic principles about memory management (retain count, autorelease pools etc) in Cocoa, but once you go past simple retain/release, it's getting a bit more confusing. I couldn't find decent answers for those, as most tutorials cover simple scenarios. I would like to ask about best practices in how to write the code and avoid ...

What IPhone OS do you build for when releasing?

There are currently 3 options. 2.0, 2.1,2.2. My app only needs 2.0. Do I build for 2.0 or 2.2? What is the best option? ...

initializing a class. Can you see any problems with this?

-(id)init { if (self = [super init]) { self.name = [[NSString alloc] init]; self.type = [[NSString alloc] init]; self.phoneNumber = [[NSString alloc]init]; self.webAddress = [[NSString alloc] init]; NSMutableArray *pricesArray = [[NSMutableArray alloc] init]; NSMutableArray *poolsArray = [[NSMutableArray alloc] init]; self.pric...

Any way to tell if my iPhone app is running under the debugger at runtime?

I would like to have my error handling code behave differently if it is running under the debugger. Specifically, if I am running on a handset, not attached to a debugger and fail an assertion I want to send the error to my server. When I am under gdb, I want to break into the debugger. Although I can imagine how Apple would write the c...

Simple application structure. What do you think?

I'm interested in the way I am retaining my properties and the aspects of memory management. This is for a simple application that edits the information of a class that is stored in a table. There are 3 ViewControllers. A list view (list all classes) a detail view of the selected item (lists properties of selected class) an edit view...

set view property in a UIViewController from a NIB programatically (not during initialization)

At the beginning of my app, I am initializing a UIViewController with a NIB. At some point, I am removing the view from the screen, then releasing it, so it no longer takes up memory. (At this point I am also saving the state of the view in the UIViewController) At a later point, I want to recreate the view and bring it back on screen...