iphone

Decide in code which class and xib file to load on app launch

Hello, I'm changing my app to add an in app purchase. When I initially set up the app I used interface builder but now i need to decide which class & xib file to load on app launch based on whether or not a user has purchased a feature. My app is set up with a tab bar controller that has a naviagion controller for each tab. Inside ...

how to get resource path using subpath Using NSBundle

Hi, Have the folder structure like *Resources/books/CD_en/icon/0.jpg; *Resources/books/CD_en/icon/1.jpg; *Resources/books/DD_en/icon/0.jpg; *Resources/books/DD_en/icon/1.jpg; how to get resource path from NSBundle using the subpath 'books/CD_en/icon/0.jpg'; I tried using, - (NSString *)pathForResource:(NSString *)name ofType:(NSStrin...

How can I locally save an XML file on an iPhone for when the device is offline?

My app is accessing data from a remote XML file. I have no issues receiving and parsing the data. However, I'd like to take the most current XML data and store it locally so - in the event that the user's internet service isn't available - the local data from the previous load is used. Is there a simple way to do this? Or am I going to ...

How do you get multiple touch buttons to work with touchesBegan/Moved ?

Hi, I have a bunch of buttons that I want to activate in three different ways. Touch Down Touch Down - multiple touch (at the same time) Touch Drag Inside (The same as dragging your finger over a piano) The first two is obviously easy in IB. However many people, including myself, have had trouble with Touch Drag inside. So I ended u...

uitabbar dissapears after showing modalviewcontroller

i have an app with a uitabbar and a view. the view's viewcontroller presents a modalviewcontroller, when i dismiss it the uitabbar has dissaperead. Any idea what to do? Would it be safe to recreate the uitabbar if i can't find another solution? ...

How to make us and uk version of iPhone application ?

Hello all, I have seen some localization examples but they were based on languages . In my case I want to make my application in two versions : us and uk . For that I can not depend on language as I have seen just English in the settings application . there is no English(UK) or English(US) . I want just some minor changes like $ or...

iPhone Image Gallery Like App Store

Can anyone point me in the right direction on how to implement a image gallery like the one that the App Store uses for screen shots of apps? I am trying to get images in a horizontal gallery so that the user can flick through them. The app store nicely snaps to each image. ...

iPhone Bluetooth application to connect to a Bluetooth printer

Hi, Has anybody succeeded in developing a bluetooth application on the iPhone that prints to a Bluetooth printer? I have been investigating the feasibility of developing an iPhone application that could print to a Bluetooth-enabled printer. I've gone through the most of the postings in this thread and was confused by the mail exchange...

UITableViewCustomCell

Hello All i want to use UITableCustomCell in my application but i am invoking the custom cell from another class. When i use UITableViewCell then i need to add these lines to call tableviewcells from another class /* SurahViewController *aBookDetail = [[SurahViewController alloc] initWithNibName:@"SurahVi...

Problems with facebook connect

Hi all, I am developing an application, which gives the user an option to share feeds using facebook connect. I am stuck at the start itself. I dowloaded the FBConnect sdk and implemented the code as explained in the documentation. Now when the fconnect button is touched in the application, instead of connect page opening, to grant the ...

How do I embed a quicktime movie into an iphone web app using javascript?

I'm creating an iphone webapp in dashcode for the first time and I can not figure out the code for embedding a video into the webapp.I have an html file and have a few pages it switches between but I need to create a function in javascript so when I click a button that it will pull up a video I in quicktime. Any sample code or thoughts? ...

iPhone + save state of application in case of any interruption

I have developed a game as iPhone application. Everything is completed and I am ready to upload it on App Store. I need to implement only one feature and that is, when any interruption occurs like a phone call / a sms / a notification, I want to save the current state of game so that whatever user chooses: either to handle that interrupt...

Temporarily restrict certain resources from build inclusion in Xcode?

Is there a way to temporarily restrict which resources are included in the build of an iPhone app (via Xcode)? I am testing a use case in my app and want to minimize the installation time on my device. I would like to do this by reducing the resources to only those needed by this use case... i.e. there are over 70MB of .wav and .png fi...

scale image of size 1600*1200

hi, I am developing image size based iphone application. selecting two photos of size 1600*1200 from photo library and merging of both to single image and save to same library. Again if i check the image size it shows 600* 800. How to get original size(1600*1200) of created New photo(600*800). Thanks in advance. ...

View controller is drawing under my navigation bar after popping ttthumbsviewcontroller

I'm implementing the TTThumbsViewController from the Three20 project and things are finally starting to take shape. I push the TTThumbsViewController from the current view controller by just pushing it onto the current stack and animate the transition (common navigation controller push). My problem is that when I pop the TThumbsViewC...

Trailing slash important, but stripped out?

If I create a url a la: const UInt8 *pFilepath = (const UInt8 *)[[NSHomeDirectory() stringByAppendingString:@"/Documents/"] UTF8String]; CFURLRef ldestination = CFURLCreateFromFileSystemRepresentation (NULL, pFilepath, strlen((const char*)pFilepath), false); and then log it to see what I've got a la: NSLog(@"destination url:%@",(NSSt...

iPhone: How to purge a cached UITableViewCell

iPhone SDK question: Does anyone have suggestions on how to purge a cached UITableViewCell I'd like to cache these cells with reuseIdentifier. However, there are times when I need to delete or modify some of the table rows. I expect to call reloadData after the row changes. Right now, dequeueReusableCellWithIdentifier always returns th...

To Convert UIImage's into video format using FFmpeg libraries in iPhone

Hi All, I want to develop an application in iPhone 3g of video recording and for that i'm using FFmpeg library i'm able to compile it but unable to get the code for this. Can anyone help me in solving the problem? If possible can anybody help me through code or any link to github or like that? Thanks in Advance. ...

Ways to do Load Testing for Web Service Made for iPhone Application

Hello All... It's something strange I am posting here, as I have little bit confusion since last few days.. I have made a web service in asp.net 3.5 using MSSQL 2005 as backend, for my iPhone Application. Now, My Database have some critical fields like longitude and latitude, based on this almost all my web service is working. Curre...

How to test iPhone application through Test User ?

I have submitted my application , it is in review right now. How to create in app purchase .. once i created in app purchase, how to test it using storekit framework in sandbox ..? ...