iphone

Autoplay an Audio File on Mobile Safari

Hey guys, I've got a little system dashboard web app that I've written, replete with alarm notifications. I've had it working for quite some time on mobile safari, but recently wanted to add audio to the alarm notifications to allow me to easily know when there are alarms and I'm not looking directly at the display. The alarm notifica...

suppress keyboard in iphone UiWebViews

I have an app that uses UiWebViews, and I need to not show the keyboard for a text field within such a view. I provide my own buttons that insert the limited sorts of text the field allows, but I also need to allow pasting (I will filter what gets pasted) and adjusting the cursor position. Any way to do this? ...

Navigation with UISegmentcontrol iphone

I have created an up/down arrow segmented control button on the right side of the navigation bar in my detail view. How can I use these up/down arrows to change views? ...

Fluid iPhone Animation ala Plants vs Zombies

If you've played Plants vs Zombies, you've seen how fluid and remarkable the character animation is. Can anyone assume how they are doing this? They don't seem to simply be animating bitmaps; the animation is too crisp, even as characters rotate and scale. The artwork looks vector, but I can't imagine that everything is drawn out using C...

iPhone apps: Webapps or native?

Hi all, I am planning to create an iPhone apps version for our online webapps. I am still new to iPhone apps development so I don't know whether to choose iPhone native or a webapps that runs on iPhone browser. The requirement is actually pretty basic. The iPhone apps need to submit data and get data from the database that is also use...

iphone Three20 TTMessageController Address Book

Hey there, I'm trying to use the TTMessageController from Three20 to send messages through a custom web service. I'm not clear on how I can incorporate contacts from the user's address book. I see the model mock address book in the sample app, but the sample only contains names. Is there a way to set the datasource of TTMessageContro...

Mapping irregular shapes or other polygons (cartoons, sprites) to triangles in OpenGL ES

I don't understand the concept of showing sprites mapped into OpenGL Triangles. If OpenGL ES only draws triangles and points, How do you display/map non-triangular shapes? Why would a shape mapped to a triangle not be distorted? To explain: In my mind, mapping, say, a sprite of Mario, to a triangle would produce a distorted or cropp...

How does Apple know you are using private API?

I only submit the binary file to Apple. I didn't submit any source code to Apple. Apart from manually check what you used. How Apple check what API you have called? How did Apple know? ...

Better product to develop for, iPad or Android based tablet in a purely business related application

Hey guys Just wondering what you'd suggest as the best platform for developing a business application for a tablet device. The application needs to be multitouch, have access to a maps API, a database on the device. It will not be going on sale in the app store or Androids market, it is purely for specific business task and not for ...

Force a view change from a button when using UITabBarController

Hello - When using a UITabBarController, when the user enters some data on View1 and presses a button, I need to perform some calculations and present the results on View2. I have an AppDelegate, View1Controller, View2Controller, and View3Controller (View3 is a basically static view). My AppDelgate declares UITabBarController *rootCon...

popViewControllerAnimated from back buttton

How can I popview from back button pressed, i passed the below code from previous view controller. Thanks self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Back" style:UIBarButtonItemStyleBordered target:nil action:nil]; ...

"Single NSMutableArray" vs. "Multiple C-arrays" --Which is more Efficient/Practical?

Situation: I have a DAY structure. The DAY structure has three variables or attributes: a Date (NSString*), a Temperature (float), and a Rainfall (float). Problem: I will be iterating through an array of about 5000 DAY structures and graphing a portion of these onto the screen of the iPhone device using OpenGL. Question: As far as dra...

Remembering state: content offset and table cell reuse.

I have a tableview with cells that have a scrollview in them. The scrollview is paged, 2 pages to be exact, and is meant to be able to quickly compare two small blocks of text. I'm trying to find a way to remember what the content offset of the scrollview is. Cell reuse is killing me. I've tried resetting the offset in prepareForReuse ...

Maintaining iphone development/distribution certificates

I am starting to get several certificates for iphone development and need a way to know which is which... Is there a good way of maintaining these? Can they be renamed appropriately? ...

How to convert Iphone:37.615319,-122.388293 In Twitter to real life location? Is there an API available?

HI, Does anyone know that how to convert IPHONE:37.615319,-122.388293 ( I am guessing that is the longitude and latitude of the location) in Twitter to real life location? Is there an API available ? Thanks very much, Ling ...

Avaudioplayer problem

Hi All, Actually i am using avaudioplayer. my player is working very fine (forward,revind,play,pause,volume,progress bar). Only problem is that i am not able to stop the song. so all songs are overlapped please any body tell me where i put [self.player stop] to stop my player when i play new song. ...

Adding a subview larger than cellHeight to a UITableViewCell?

I'm trying to add a subview to a UITableViewCell and the design that I'm working from demands that this particular subview (an image) needs to be larger than the actual UITableViewCell and thus partly overlap its siblings. So I've set up my table cell, generated my image and added it to the cell's contentView: // rowHeight for the UITa...

how to create folder structure in documents folder of my iPhone app

Hi friends, I have a folder structure in my server and I need to navigate through that folder at device side. I receive the folder structure in XML format. My query is :- 1) Can I create the same folder structure in documents folder of my iPhone app. 2) What would be the best approach whether to create folders at device documents folde...

release viewcontroller after presenting modally

I was watching CS193P Stanford course on Itunes, and in one of the lectures a demo was given and There it was said you could present the viewcontroller modally and then release it. Roughly like this (I know this isn't perfect but I'm on my PC atm) [self.view presentcontentmodally:myVC] [myVC release]; However this seems to produce pr...

Open-sourcing a mobile app

I'm considering making an existing mobile app into an open-source project. It has an Android and iPhone version. While I have used open-source projects and submitted feature requests and bug reports, I have never created an open-source project nor contributed with a patch to an existing one. What are the top things that I should take i...