iphone

How do i get touch event on WebView.

Hello Everyone, Hope you all are fine and also in one of your best moods!! I have one problem in Map based application. kindly go through it and post your suggestion. Thing at Glance: I need to integrate map in my application. application shows map based on passing parameter as state and city. i am using yahoo map image for that. i...

Problem with XMLParser and MutableArray

Hi! I have followed this tutorial and the parsing part is working allright. My problem is that when printing out the values that I store into the object (in my case the object is a car) always remains null. I save all the objects into an MutableArray which always seems to have a length/count == 0...what am I doing wrong? The array is, ...

Navigation bar's buttons tint color sometimes not set

Refer to the following, short video: http://screencast.com/t/cmnsqVTh The problem is with the color of a navigation bar's back button. The first time I load the app, the navigation bar + its buttons have the default color. I then push a view controller on the stack, and when the new view loads (in the viewDidLoad method), it sets the n...

iPhone - Pass an array between two non-adjacent controllers

I'm building an app that begins by loading a 'downloading' view controller which fetches an array of data through an API call. Once the data is returned, the app then hides this view controller's view, and loads a tab bar controller, which houses two navigation controllers. The first view pushed onto the first navigation controller is a...

Iphone Keyboard Transparency

First I'm so newb to iPhone dev and I'm sorry if this is easy. Is it possible to change the amount of transparency on the iPhone keyboard (or even the color if that's possible). I know you can acquire a reference to the keyboard view (link provided) http://www.iphonedevsdk.com/forum/iphone-sdk-tutorials/7350-adding-subviews-custimize-k...

Gracefully Halting NSXMLParser?

Hello there, still new to XML parsing with the iphone so i have a few questions. in my opinion, id like my iphone-app to have to request out to the internet as less as possible, so i have combined a few XMLs i had to a single, larger one. However when im parsing information out, it has some similar node-names (not at the same level o...

is it possible to update UIButton title/text programmatically?

I have a UIButton, that when pressed, brings up a new view where the user can change some settings. When the view is dismissed, I'd like to update the title/text of the UIButton to reflect the new state. I'm calling: [myButton setTitle: @"myTitle" forState: UIControlStateNormal]; [myButton setTitle: @"myTitle" forState: UIControlState...

What's the best way to provide animation grabs, e.g. when asking questions about coreanimation?

This is a little meta, but I'd like to ask a question related to coreanimation on the iphone, and I think it would really benefit from some kind of movie attachment / link to show what the code does. Probably I'm not the only one who'd like to do this. My question is, what's the best way to illustrate an animation, grab it from the devi...

image markers on MKMapView

Need to use own imaged markers instead built-in pins. I have several questions. 1. Is it legally? I have a doubt because there is no standard support for markers(pins) with own icon. How to make a marker with own icon right way? I found the post which actually describe how-to: http://www.arlingtondev.com/thoughts/?p=81. I am a newbie, ...

encoding H.264 video (or similar) on the iPhone directly?

What's the best way to encode video (with audio) on the iPhone? It looks like QTKit isn't available... so I might have to link with ffmpeg, but ffmpeg doesn't look like it encodes H.264 (judging from their home page.) If it is possible, I'm also curious how fast I can expect it to perform on the ARM. I imagine it might take minutes t...

failed to compile cell.textLabel.lineBreakMode = UILineBreakModeWordWrap on iPhone

Hi, failed to compile cell.textLabel.lineBreakMode = UILineBreakModeWordWrap on iPhone, it does not recognize textLabel property. Could you let me know how to fix it? ...

Sharing Code between Flash Apps and iPhone Apps

I am interested in writing games for the iPhone and the Web. Ideally, there would be one language that I could write my games in and it would work on both platforms. I know this is not the case, so what is the best way to leverage code between iPhone apps (Objective-C/C++) and Flash SWFs (ActionScript)? ...

Accessing iphone maps bookmarks through SDK

Hi all, Does anyone know of a way to access the bookmarks of the "Maps" application programmatically through the SDK? I'd like to read and write bookmarks if possible. Ideas? Thanks! ...

What is the Best Way to Use iPhone 3.0 Features While Still Maintaining Compatibility with Earlier Versions?

For example, suppose I had written my own class which allowed me to record audio on the iPhone. iPhone OS 3.0 now provides that functionality as a part of the Cocoa Touch Framework. How can I use my existing class to support iPhone OS version 2.2.1 and earlier, but at the same time take advantage of the new class provided by the Cocoa ...

Dynamic class creation in Objective-C

Is there an equivalent of selectors for classes? How can I create a instance of a class from a string? ...

Copy and Paste on iPhone with multiple data representations

I encountered some issues when trying to put more than one data representation onto the pasteboard on iPhone 3.0. What I'm trying to do is put a data representation and a string representation onto the pasteboard. The data is my own data type and I use it for copy and paste in my application. The string representation is a way to copy a...

iPhone: Using C Libraries

I'm trying to write an SSH client for the iPhone, and I'd like to use the libssh2 open source library to do so. It's written in C. What is the best way to use this C library for my iPhone app? Should I compile it into some binary that I include into the my app, or do I add all the source to my project and try to compile it along with ...

iPhone UITabbar item double-click pops controllers

Hi there, just found out something: If you have a Tabbar combined with a NavigationController (that has some views on it's stack) and you double click the TabBarItem, the view pops to the first ViewController, whether you like it or not. Is there a way to prevent this? ...

Error saving data to cache directory (iPhone)

I am trying to save images using the following code: - (void)writeData{ if(cacheFileName==nil) return; if(cacheDirectoryPath==nil) return; if (![[NSFileManager defaultManager] fileExistsAtPath:[self filePath]]) { NSData *imageData = UIImageJPEGRepresentation(self.image, 0.9); NSEr...

How to keep the keyboard always on screen?

Hi, In a certain view I have got different elements and I need the keyboard to stay always on the screen. In iPhone OS 3.0, when touching text the keyboard gets dismissed sometimes. How can I keep it from dismissing? What is the best way to do so? Thanks. ...