iphone

JavaScript, iPhone: Repeat Action while Holding Button

I am working on a website which I would like to work on iPhones, however I want it so they can tap and hold a button and have it continue firing the onclick event. I got it to work in other browsers, but the iPhone is the only one that will need to hold down the button. Is there a way to repeat a function when holding down the button? Th...

Iphone newb Question - How to export information to a website?

I am a new iphone developer and was wondering if I could get some help with some code. I just want to know how to export basic character strings and variables to a website to be used by a third-party program. edited*(how do I send it as an http request to a web server?) I am a fairly new programmer and am wondering if there is some so...

How can I play video by touching the button on the video thumnail of the video in tableviewcell ?

I have a table view in which if each cell is touched a video plays. Each cell have image of the video cell.imageView.image. And on the image I have a button (UIButton) with play symbol. If I touch the play button the corresponding video should be played same like the when cell is touched. I have a selector for the play button. But ...

iPhone shooter game bullet physics!

Hello, Making a new shooter game here in the vein of "Galaga" (my fav shooter game growing up). Here's the code I have for bullet physics: -(IBAction)shootBullet:(id)sender{ imgBullet.hidden = NO; timer = [NSTimer scheduledTimerWithTimeInterval:0.05 target:self selector:@selector(fireBullet) userInfo:Nil repeats:YES]; } -(void)fireBu...

how to save current state of application

hi, I am making an iphone application in which after login we will go through some steps and then finally we make a call from within the app. As we know on making call our app quits so plz suggest me how to resume that state on relaunching the app? 1-login 2-some steps 3-list of numbers 4-call Any help will be appreciated. Thanx.. ...

Huge of data display in tableview

Hello, Anyone have a idea about best way to display huge of data (above 4000) using UITableview Thanks you, ...

Implementation of MVC with SQLite and NSURLConnection, use cases?

I'm interested in knowing how others have implemented/designed database & web services in their iphone app and how they simplified it for the entire application. My application is dependent on these services and I can't figure out a efficient way to use them together due to the (semi)complexity of my requirements. My past attempts on com...

which iphone data model to choose?

i need to get some data somewhere to put in a timeline. the data strcture is like this: - Item - Name - Year - ShortInfo (mainly keywords and short texts) - LongInfo (much text with videos/audios (urls) a friend of mine told me i should you a plist and get all that stuff in there, but what about a sqlite database? any advice? ...

Sorting Table Cells based on data from NSArray

Hi, I have an NSArray which contains information from an RSS feed on dogs, such as [dog types], [dog age] and [dog size]. At the moment my UITableView simply displays each cell on each dog and within the cell lists [dog types], [dog age] and [dog size]. I want to be able to allow users of my app to "sort" this data based on the dog nam...

Set Autolock programatically

hi friends, I want to set auto lock my iphone/ipad/ipod screen programaticaly after some time delay. Can any one tell me how to do the same? if any one is having any suggestion please let me know. thanks in advance. ...

How to check iPhone keyboard klick sound turned on/off in settings ?

Hi! I'm working on custom keyboard and need to play tap sound for keys if it enabled in the Settings. Tap sound not a problem but how to check is keyboard click sound enabled ? Thanks. ...

iPhone: Pushing View Controller causes Slow and Jerky Keyboard Animation

I have a model-view-controller design app with more than 20 views and imageviews. In one view, I have a textfield that gets set to first responder when the view displays such that the keyboard is immediately visible. When I push this view onto the navigation controller the display of the keyboard is very slow and jerky. However, when ...

Combining iPhone/iPad apps into one universal app

I have two apps (one for the iPhone, the other for the iPad) that I'd like to combine into one universal app. For my first attempt, I tried creating a new universal app project and added the libraries for the iPhone and iPad versions. The iPad version compiled and ran fine (as expected), but the iPhone version didn't. My hope was that I ...

How to add UIButton at rightmost in UITableView cell

Hi! I want to add UIButton at the rightmost on cell of UITableView. I m not getting how to do it. Please reply. Thanks In Advance, Vikas ...

iPhone Pong Advanced Deflection Angle

Hi, I am currently developing a simple Pong game for the iPhone. Currently using CGRectIntersectsRect for the collision detection and as for the deflection of the ball when it hits the paddle, I just multiply the ball velocity with -1 (therefore reversing the direction of the ball). What I am trying to do is to make it so that when the...

How to access API reference from Xcode ?

I'm tired of switching between xcode and the browser to check iPhone API reference from Apple web site. Any better way to to it directly from Xcode ? Ideally I'd like to select a word and search for it in the APi reference automatically. ...

iPhone: Creating a hierarchy-based table navigation.

Hi there, I've tried to ask this before, but nothing got answered. Basically, I would like someone to explain to me how to create a table, which when a cell is tapped, pushes the user to the next view for that cell. I have this so far: Click here to view what I have. I would further like to, say when CSS is tapped, it goes to a new vi...

Returning from method inside a @synchronized block

I'd just like to know if it's advised to return from a method within a @synchronized block? For example: - (id)test { @synchronized(self) { if (a) return @"A"; else return @"B"; } } As opposed to: - (id)test { NSString *value; @synchronized(self) { if (a) value = @"A"; else value = @"B"; } re...

A question related to UIButton

I have taken customview in my code for UIButton. UIButton *button= [[UIButton buttonWithType:UIButtonTypeRoundedRect] retain]; [button addTarget:self action:@selector(checkedimage:) forControlEvents:UIControlEventTouchUpInside]; -(IBAction)checkedimage:(id)sender { NSLog(@"checkedimage"); if(checkImage == NO) { newImage = [UIIm...

Programmatically determining padding for grouped UITableView

Is there a way to programmatically get a UITableView's 'grouped' style padding? I'd like to size some things in my screen but I need to know how far left or right to place them on a grouped UITableView's UITableViewCell. ...