iphone

get viewport position in javascript in iphone safari

Hi everyone, I'm trying to prevent element from scrolling in safari on iphone. I've tried solutions mentioned here: http://stackoverflow.com/questions/777621/iphone-safari-scroll-a-list-inside-a-html-container But my list is large and it doesn't work so smoothly. What I have in mind is to detect onscroll event and reposition the elemen...

How can I query chapter metadata from a m4a file?

I need to write some code that will let me query a m4a file and extract the chapter information out. Including: chapter name chapter start time chapter artwork I did some quick searching and it seems this is viewed as proprietary information by Apple? I found some discussions, but most were from 2005. Also there have been some si...

How to disable highlighting of the app icon?

Hi, How can I disable the highlighting that appears on my icon while it's being displayed on the home page of iPhone? Thanks. ...

Custom button in navigation bar does not work

I have added a custom button (subclass UIButton) to my navigation bar but the button does not change states when clicked. The button is configured correctly as it does work in, for example, a table view. All advice is welcome. ...

iPhone SDK: After invalidating a Timer, how can I use it again?

I have set up an animation in Xcode using an NSTimer, and It kept repeating over and over, so i used this command: else if(gordon.image == pigImage11) [animationTimer invalidate]; So, when gordon (a UIImageView) image is set to pigImage11, The timer invalidates, this gave the desired effect of stopping the animation constantly rep...

Xcode: The session is inactive. Please check your setup and try again. 0xE800001E

This happens after I hit Build and Go to run my app on my device. Build -> Clean fixes it, but it's very annoying to have to clean and rebuild the entire project every time I want to run it. P.S. Is there any way to transfer my app to my iPhone using Xcode, but not run it? ...

where can I find iphone sdk 3.0 GameKit tutorials for developing P2P applications?

Hello, I'm starting to develop a p2p applcation for the iphone sdk 3.0. But I'm finding it hard to find good code examples for the bluetooth api. Anyone knows where I can find this info for newbies? thanks!!! ...

How can I search in an UIWebView?

I need to perform search in an html page displayed in a UIWebView control. The functionality I need is something that Safari has, when you hit command/ctrl F for searching the document for some word and the program highlights the hits for you. Is there any easy solution for this problem? ...

UIScrollView starting point

I have a iPhone app with a main view that is 480 x 510. I'm a bit confused as to how the coordinate system changes when I go from portrait to landscapeRight. Initially, I had a 480x480 content area, and wanted to add a button on the side to bring up a menu. However, the only way I could find to have the writing run down the length of...

How do I get the key of the parent object on iPhone with Sqlite

A very simple example I am trying to create as I grasp iPhone App programming. First TableView shows the makes, selecting one takes user to different view(Can I use the same view to show models) to show models. If the models TableView, that displays the car models, allows user to add a new record, how and where do I capture the primary...

How do I manage database relationships in objects on iPhone with Sqlite

For instance, if I am able to display a UITableView with all the movies and the Genre. Clicking Edit on the movie should load a new view(is this the right way, loading an edit view?) with a text box and some sort of selector or another view to choose the Genre. Once the Genre is selected, how do I capture the GenreId to save in the movie...

iPhone API for Accessing Amazon S3 REST API

Does anyone have any suggestions for GETing from or POSTing to Amazon S3 services using their REST API via the iPhone. It does not look like it is possible but I may be reading the docs wrong. Thank you in advance for your help! L. ...

Can I develop an iPhone application that my company can use for internal employees only?

I'm interested in developing an iPhone application that would be useful to some of the employees at our company in the field. I'm wondering if that's possible to do and if I still have to through the Apple application approval process for it to work? ...

How to resize textfield with animation like the iPhone safari address-search bar?

Probably has something to do with CoreAnimation. Does anybody have any example to do something like this? Well I'm new to CA so any example that is close to this will help a lot. ...

IPhone consuming restful WCF service

Hello I currently have a simple WCF service running with one get request which returns XML, http://a446062738bb4f0aa2d8fd975aac602f.cloudapp.net/Service1.svc/GetALLPictures/10... Im trying to use [NSString stringWithURL:] to populate the string with the XML content, however this is not working, ive tried using Unicode and UTF8 encoding t...

Whats the best place to set a View Controller ivar?

I have an XML reader class which I initialize with a URL - (id)initWithURL:(NSURL *)url This class adds objects to an array in the calling class using an instance variable // in the interface ViewController *viewController; // in the implementation [viewController addObject:theObject]; Now, I initialize my XML reader class, then s...

NSNotificationCenter: Do objects receive notifications on the same thread they are posted?

I am interested in knowing whether I can expect the observing object's method to be pushed onto the stack before the posting object's method has been completed and removed. ...

selection color for a UITableViewCell

If I have a custom UITableViewCell that doesn't use the textLabel built in to the cell but instead does its own drawing, how can I change the appearance of the contentView on selection, like it does automatically for the default text (customizable by setting the selectedTextColor:)? If I change tableView:willSelectRowAtIndexPath:, then ...

IPhone Dev : UITabBar in Code

I'm trying to create add a UITabBar in code to a view. I'm having a problem having the tab bar items work correctly. Here is what I have: IntegratedTableViewController *integratedTableViewController = [[IntegratedTableViewController alloc] initWithStyle:UITableViewStyleGrouped]; integratedTableViewController.title = @"Integrated"; integ...

Need help with Scroll View Crashing

I am trying to display about 53 images in Xcode for iphone, but about the 37th image crashes my entire app! If any one sees any errors in my code, I would really appreciate your help. Thank you!! I think I am not releasing my images somewhere...just not sure what to do! #import "MyProjectViewController.h" @implementation MyProjectView...