iphone

Foreign language characters in iPhone SQLite

I'm creating an app for the iPhone that will hold Portuguese characters. When I query the database from within my app I get a null for the field that contains a special character. Do I have to do something in special during the initial insertion of those records into the database? thanks, foreignerbr ...

Accessing an SQLite DB for two separate queries on iPhone App Initialization

I was successfully accessing my database to get a list of cities on the App launch. I tried running a second query against it right afterward to get the list of States but all that happens is that my app blows up with no usable error in the console (simply says "Program received signal: EXEC_BAD_ACCESS" and nothing more). Here is the c...

I Need Instruments tutorial ....!!

Hello, I have almost developed my iPhone application. Now I want to test it for memory leaks and fix it. I want to know how to find bugs and leaks and locate them in code and then fix it.. So if anyone can provide me a good tutorial or example ?? Thanks ...

How to open xls file in iphone application?

I want to devlop an application in iphone where user can open a xls file ,Can do some editing on data already present and finally save it. How can i do it any idea? ...

MPVideoPlayer add/remove buttons.

Hi everyone! Does anyone knows how to add/remove buttons from the MPVideoPlayer window? I put bellow an example form an app that does that. It is in App Store which means that it is allowed by Apple. Thank you in advance. UPDATE I think that the main way to do it is just by obtaining the UITabBarController of the MPVideoPlayer window...

how load paused scene again in cocos2d?

i have 3 scenes first is main game scene. when i pause that scene i replace it with other scene and then other view is loaded.ie. main menu so when i click on continue button on that scene i have to resume main game scene but it shows 2nd scene with which i have replaced the game scene.idnt knw what to docoz i haveused both viewsand scen...

how to put default delete and discolsure button in UITableView?

i have a list name in uitableview.And i want the default delete and disclosure button in uitable view.how it possible? ...

Graphical Bugs while programmatically creating UILabel, UITextField, etc...

I programmatically created a login view and a table view. Under certain circumstances which i cannot reproduce there occur some strange visual bugs: Text with some letters having a different font size than others A button where the border is not initially shown but only if you click on it. In the same case, the border of the button ca...

iPhone in-app purchase: How can I detect unfinished transactions using storekit?

I'm implementing in-app purchase in an iphone application that allows for downloading of a non-trivial amount of data. Right now, I'm trying to figure out if the Store Kit can tell me if there are any transactions where the purchase is complete, but that have been interrupted by application shutdown. As far as I can tell the only way ...

Objective C - Detecting sound input while playing MusicPlayer is running

Hi, is it possible to detect sound input while a song is playing in the background? The sound input detection that I have works on its own. I'm using the MPMusicPlayerController for the playing a song part, which also works. However, combined together, they don't work. Just trying to get a confirmation that indeed they can't run at the ...

One class for one view

This may be a foolish question.but I want to know,,,, In my iPhone Application I have so many classes and Xib files (Like 12 to 15).Is it ok to have it like that???... Is there any limitation for number of classes......?????..... Does it affect the performance of the app????.... Thanks. ...

Apply barrel distortion to UIView

I've got a UIScrollview which fills a landscape screen, which contains a small tree of UIViews around inside it which I can scroll horizontally. I'd like to apply a barrel distortion to the scrollview, so that as the subviews move from the outside to the centre of the scrollview, they change shape. What is a good what to go about applyi...

how to pass 2 parameters in objective c

hi i am new to iphone applixcation development, Please let me know how to pass 2 parameters to login button I want to pass username and password on the button click of login button. i have given in this manner -(IBAction)Login_Method:(id)sender withpassword:(id)password { } ...

How to record video without user interaction in iphone using ObjC

Hi! I'm working on an app. In which I need to provide the functionality to capture the video using iphone 3gs without touching any buttons. I want to use the timer to start and stop video recording. Any one have any idea. how to do this using new iphone sdk. Thanks in advance ...

problem in apple's MFMailComposeViewController.....

Hi, i have code in my current navigation controller in which one button for that.... but when i click button mailcomposer appears **but current navigation controller and its view disappears and then it works... how can i avoid that disappearance,anyhelp please **...... - (IBAction)clickedMailButton:(id)sender { Class mailClass = (NSClas...

HTML entity encoding (convert '<' to '&lt;') on iPhone in objective-c

I'm developing an application for the iPhone that has inApp-mail sending capabilities. So far so good, but now I want to avoid html-injections as some parts of the mail are user-generated texts. Basically I search for something like this: // inits NSString *sourceString = [NSString stringWithString:@"Hello world! Grüße dich Welt <-- Th...

Using JSON with Objective-C to access web services.

Hi, I am refering this link to access my JAX-WS web services. JSON-RPC Bridge to XML Web Services and usage in Objective-C in iPhone. I have successfully integrated my Web services with JSON Bridge. I have also tested it with Firebug, it works fine. Now I am trying to access it with iPhone however I get an error at: ASIHTTPRequest *r...

PageTurn animation in iPhone

Hi All, How to make page turn animation like the Stanza app ? Earlier i was using , but its not the animation i am looking for. [CATransaction begin]; CATransition *animation = [CATransition animation]; [animation setType:(prevPage ? @"pageUnCurl" : @"pageCurl")]; [animation setDuration:0.7f]; [animation setFillMode: ...

As for iPhone Application Development, it is a question.

I am developing iPhone Application. MyApplicationData.h #import <Foundation/Foundation.h> @interface MyApplicationData : NSObject { NSMutableArray* appData; } @property (retain) NSMutableArray* appData; -(void)loadData; -(void)addAppDataItemPrice:(NSString*)price itemCategory:(NSString*)category itemDate:(NSDate*)date; -(void)f...

How to implement UIImageView-like delayed loading in UITableView

Hi all Background: I have a UITableView showing an image in each cell. These images are all part of a big pdf-file. So what I am doing is actually rendering little pdf-parts in those UITableViewCells, each cell displaying just one piece. Therefore I add a UIView to the contentview of the cell and render the view on demand. Rendering the...