iphone

Sqlite iPhone data insertion problem

Hi I have a function which basically tries to insert some data returned from a REST call. - (void)syncLocalDatabase{ NSString *file = [[NSBundle mainBundle] pathForResource:@"pickuplines" ofType:@"db"]; NSMutableString *query = [[NSMutableString alloc] initWithFormat:@""]; sqlite3 *database = NULL; char *errorMsg = NULL; if (sqlite...

Should I use UIWebView or UITextView to display text in an e-book reader app?

I want to make an e-book reader iPhone app. Should I use UITextView or UIWebView to display the text? Which control is used by other e-book readers? ...

Iphone. Create a latitude from a string or integers

Hi. One small conversion problem that drives me crazy. I have a string (ex "35.453454") that represents a latitude. I want to use it as a latitude for CLLocation. How can I convert the string in the proper CLLocation (in degrees) format ? Many thanks, this drives me so mad ! Thomas ...

Max file size allowed to be created by iPhone application?

Is there any limit on file size allowed to be created by iPhone application? Also, how do I get the available free space in iPhone? ...

iphone problem adding splashscreen

hi all, i've a little problem, i've add a default.png in my app and it work. I've modify my file, delete file and reference and upload my new file. On my iphone the image does not appear, only some second of blackscreen and after my app start. In the simulator the splashscreen appear. I've try to delete my app on iphone, make a clean al...

Navigationcontroller, why isnt this working?

Hi ! Why wont this work? View1 loads View2. In view2: - (void) goToView { View3 *plainText = [[View3 alloc] initWithNibName:@"View3" bundle:nil]; [self.navigationController pushViewController:plainText animated: NO]; [plainText release]; } - (void)viewDidLoad { [self goTo...

Why are all my masked views unmasked in my view snapshot?

I'm taking a snapshot of an view. This view has got some subviews which have layer masks applied to them. For some reason, those masks take no effect in the snapshot and the masked parts are completely visible. UIGraphicsBeginImageContext(theView.frame.size); [theView.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *newIma...

How can I run one app from another app in iphone?

Hi, On some app , I see when one link touched , use safari for open link and quit from current app. I want use from this feature for run messages app from other app , Can I do this? if yes, how can? thanks,... ...

Is there an alternative to the CALayer -renderInContext: method?

I need a way of capturing a view or the screen with everything just exactly like it appears on screen. -renderInContext: won't do that. Are there any alternatives to this? ...

Is it possible to buy content from itunes store via iPhone app?

Is it possible to buy content from itunes store via iPhone app? Does apple allows to purchase stuff from iTunes using iTunes API? And is there an ability in the API to do that? Thanks ...

How to highlight the button untill the next view is changed in iphone?

Hi Buddies, I have created five buttons in the view controller. If i clicked the button it goes to the corresponding view. Now i want to display the button in highlighted state when it is clicked. It should go back to the normal state only when i click the other button. I have set the another image for highigthting buttons when i click...

issue with tab bar view displaying a compound view

I created a tab bar application, and I make the first tab a table. So I create a tableView controller, and go about setting the class identity of the view controller for the first tab to my tableView controller. This works fine, and I see the contents of the table filling up the whole screen. However, this is not what I actually want i...

unarchiveObjectWithFile retain / autorelease needed?

Just a quick memory management question if I may ... Is the code below ok, or should I be doing a retain and autorelease, I get the feeling I should. But as per the rules unarchiveObjectWithFile does not contain new, copy or alloc. -(NSMutableArray *)loadGame { if([[NSFileManager defaultManager] fileExistsAtPath:[self pathForFile:@"...

How to create a translucent button in iphone?

I am new to iphone development.I want to create a translucent button with the text "exit".How can i create it? Thanks. ...

Add UIView Above All Other Views, Including StatusBar

I'm wanting to create a view (UIControl) which blocks all input and shows a UIActivityIndicatorView while authenticating a user. The UIActionSheet and UIAlertView both manage to add a black semi-transparent view over the top of all other views to block input and I'd like to do similar. I've tried adding my view to the top UIWindow in t...

Does SQLite handle non-English locales out of the box?

I have noticed that Google Toolbox for Mac replaces several SQLite built-in functions (LOWER/UPPER, LIKE, GLOB) with its own versions that handle string locales better. So, question to everyone who has SQLite experience: have you ever had any problems with non-English locales in SQLite? Does one really have to do something to properly h...

IS MFMailComposeViewController working on ipod 3.0 ?

IS MFMailComposeViewController working on ipod 3.0 ? ...

Playing wav files with AudioServices in iPhone

Hi All, I am trying to play two .wav files in my appllication, but i am only able to play the first wav file , the second file is not at all playing. I have added the AudioToolbox framework. In my .h file i have included the Audiotoolbox.h file and has the following declarations //Beep Sound SystemSoundID soundFileObject; SystemSou...

Question related to UIScrollview

I have one UIScrollview.I added one UITextView on UIScrollview. Now My problem is that when i'm using setContentSize property in viewdidload method. and i run it at that time text inside UITextview scrolls automatically but i want that when i scroll UIScrollview text of UITextview should scroll down ...

What is the Best Practices on store programming variable on iPhone?

I want to make store my programming variable, for example, the image file collections, also the image size, etc. It can be changed during development, but it will not change on the runtime. So, I am consider using a plist. But using a plist need to read it regularly, it seems very un-convenient. So, I am thinking define all the variable ...