iphone

Parsing multiple attributes in TouchXML

I'm in the making of an application where I'm using TouchXML to parse an XML containing airport flight information. The XML looks like this: <?xml version="1.0" encoding="iso-8859-1"?> <airport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://flydata.avinor.no/XmlFeed.xsd" name="OSL"> <fli...

How to use gesture recognizer in an OpenGLES application of iPhone?

While I know how to use gesture recognizer in a view-based application,but when I apply the same ideas in a OpenGLSE-based application: for example, I add a TapGestureRecognizer,and when I tap on the EAGLView,it crashes. So can anyone show me a standard usage of UITapGestureRecognizer in an OpenGLES-based application? best wishes. ...

iphone iframe question

is it possible to add an iframe to an iphone web page. I tried adding a standard iframe with height and width 100% however when i use them to display them in the simulator from the local files i cant scroll even after setting scrolling to auto. IS this a limitation of the simulator or am i making a mistake somewhere. im using this code ...

iPhone Web App database SQLite and MySQL

Hi, I am making a planner application for the iphone that can work online to store tasks in a mysql server. However, when I attempt to synchronise the two databases I have a problem. The thing seems to be that I can't insert more than one set of values at once into the iPhone database: INSERT INTO planner (title, duedate, submitdate, su...

Error adding object to mutable array

for (NSString *CurrentArtistName in ArtistNamesArray) { CurrentArtistName = [CurrentArtistName stringByMatching:regEx capture:1]; NSLog(CurrentArtistName); [ArtistNames addObject: CurrentArtistName]; } why is this closing my app ? There are no errors in the coding and the NSLog is logging the CurrentArtistName ? i really ...

render to floating point texture under iOS

The iPad now supports the OES_texture_half_float extension. Unfortunately I'm having trouble binding a floating-point texture to a framebuffer object. Here's my attempt: GLuint textureHandle; glGenTextures(1, &textureHandle); glBindTexture(GL_TEXTURE_2D, textureHandle); glTexImage2D(GL_TEXTURE_2D, 0, GL_LUMINANCE, 256, 256, 0, GL_LUMI...

Dynamic UILabel content inside of a UIScrollView

I've got a UILabel (amongst other controls) stored within a UIScrollView. I want to dynamically populate the UILabel so that it automatically expands its height to fit its contents. I'm just wondering what the best practice is with regards to resizing the UILabel while also ensuring that its parent UIScrollView will also expand its scrol...

How to recreate the animation in the Notes iPad app?

When you use the Notes iPad app (from Apple) in landscape mode, you see the list of notes to the left. If you select a note you see a nice little animation that looks like someone is marking the note with a red pencil. I already have a graphic that looks like that red circle, but how do I animate it like that? Thank you in advance. Edi...

Private instance variables - iPhone SDK

Hi all, I have a few variables in my iPhone app as class instance variables (which they need to be because they are used within multiple methods of that class. However, I don't want them to be exposed to the parent class. I have seen the @private keyword, but I am not sure if this is the appropriate use or not. Does anyone how to kee...

Open specific trail with a url scheme from NSDictionary.

Hi, I am using TouchJSON to retrieve the JSON response from http://enbr.co.cc/TrailsApp/shops.php. In my app I use this code to handle a url scheme. - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url { if (!url) { return NO; } NSString *urlString = [url absoluteString]; NSString *urlStrin...

Is it possible to change a bar button background image while we click on it?

I have a barbuttonitem which i have customised using a custom button with an image. I want to change this image everytime after I click it. Like on and off. Once I click it it will show OFF image. Then again it will go ON image. Is it possible? ...

Time picker problem with OS4?

I have an app which I am updating to OS4. In this I use a time picker. From this I want to get an hour and minute as an integar. This is the code I used previously for this... NSDate *selected = [timePicker date]; NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar]; unsigned unitFlags = NSYearCal...

What do the memory addresses in iPhone crash logs signify?

Hi, I've been looking at crash logs generated by an iphone app today: Thread 0 Crashed: 0 libobjc.A.dylib 0x3002d7da 0x3002b000 + 10202 1 UIKit 0x31ec4abc 0x31e4d000 + 490172 2 UIKit 0x31ebd214 0x31e4d000 + 459284 3 UIKit 0x31ebcfac 0x...

Repeat sth every 10 seconds except NSTimer

how to repeat sth every 20 seconds ?(except NSTimer) ...

Saving a Video to the Photo Library - iPhone SDK

Hey guys, Is there any way for me to save a video in the Documents directory to the Photos Library? I have the link of the video in the documents directory, I just don't know how to save it to the Photos app. Thanks, Kevin ...

Get current time

How to get current time ?(hour:minute:second) ...

Managing multiple UIViews from one UIViewController

I'm getting confused on view controllers and would love a straight example. Here's the preamble: I have a UIViewController with a matching .xib. By default IB gives me a single View in the Document window. I can make it appear by telling my UIWindow to addSubview:controller.view and bringSubviewToFront:controller.view Here's the questi...

Move iphone application in background on cALL

Hi, I want to move application on background won call or when user press home button. Please suggest ...

Cell not loaded when the application (iPad) is loaded in landscape mode!

Hi at all! Hi have a problem! In my iPad project (splitview) i can store all elements in a the cell when i press on the popover button. If I put my ipad in landscape mode all cell are loaded in the root view controller. But if I start the project in landscape mode anything was loaded... i must turn in portrait mode, press popover button,...

Adding uiview to a uiviewcontroller

I'd like to add a 50x150 uiview that I will be using as a menu, and I want to overlay it on top of my uiviewcontroller. So far what I've done is declare a UIView IBOutlet in the UIViewController class file, and in that UIViewController xib file, I dragged a UIView from the library and hooked it up accordingly. Problem is its not showing ...