iphone

iPhone + exception

Hello, Many a times I get the error "EXC_BAD_ACCESS" and my application terminates and I am not able to find because of what I get this error, until I debug my application step by step (which is very time consuming and tedious). Can anyone help me in this. ...

show progress bar when uploadingan image to my server

Hi, my app upload an image to my server. i want to show this event by a progress bar. (void)connection:(NSURLConnection *)connection didSendBodyData:(NSInteger)bytesWritten totalBytesWritten:(NSInteger)totalBytesWritten totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite (void)connection:(NSURLConnection *)connection didRece...

Publically exposing .ipa and .mobileprovision files for beta testers

Hi, I'm currently sending my beta testers a link to a downloads section on my website, where they can download the *.mobileprovision and the latest *.ipa file. I prefer doing this rather than sending large files over emails. But doing a bit of googling I couldn't find anyone else using the same method. So I got a bit worried that I migh...

Static data on iphone c++

I have data for countries which include Name, Population, Area etc for countries... What is the best way to store them, I was thinking of static arrays in header files ...? I am using c++ primarily for some game on iPhone Should I consider other options like sqlite, plists, dictionaries ....? ...

for question about autorotation

my superview is UItabelview and my subviews are UITabelview and UIDatePicker. for my subviews didn't able to call (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration why? bcoz this method calls when view rotates and at that time i want to set autoresizingmask meth...

getClientRects javascript method supported on iPhone?

Trying to find the top-most visible element in a UIWebView. I am using a JS method to do this, which works great in Safari, but never executes past the getClientRects method when executed from a UIWebView. The elements I'm interested are all of class="h". Here's the javascript which is called from [webView stringByEvaluatingJavaScript...

iPhone + In App purchase

Hello, I have a existing application and I want to implement In App purchase in this application, so that application is available freely on App Store with some locked feature and if user tries to access those locked feature, they will get some message to buy unlock those features by buying the app. Please tell me steps to implement th...

for autorotation for any view

when UIDatepicker rotates from portrait to landscape mode, my UIDatepickerview not autoresizes.though i'm using autoresizingmask property too ...

Push different views from a top-level table view in iPhone SDK

I have a grouped tableview that then tries to push a new view depending on which cell is selected. The issue is, that cells drill-down to views that are not necessarily tables - thus using coding examples from the reference books available is not that helpful - the views I'm trying to push are webview, tableview, textview etc. I have ob...

Generate PDF from html file on iPhone

In my iPhone application I'm generating an HTML file. I would like to convert that HTML file to a PDF file programatically. The PDF will then be attached to an email. Does anyone know (have an example) how to convert the HTML file to a PDF? ...

HTML email loses formatting after being sent from iPhone program

I'm using MFMailComposeViewController in the iPhone SDK to bring up the mail dialog to send an HTML formatted email. The contents of the message body is being read from an HTML file which is generated in the app and saved on the filesystem. The email looks fine in the send mail dialog and all of the CSS formatting is there. However, afte...

From my app, iphone call start immediately without asking confirmation

is that new in 3.1? ...

Fastest way to write a large file on the iPhone?

This app i'm working on allows the user to take pictures, and saves them locally (a small thumbnail image via Core Data, and the full-size image in the documents directory). I'm finding that writing the image file to the documents directory takes a long time, though -- 8 seconds on my iPhone 3GS, even longer on my iPhone 3G and first-gen...

Time passed between launches, iPhone

I'd like a static time indicator that counts from 0 to whatever as time passes. The game I'm making will change after a certain number of days has passed. I'm sure this is a simple question, but how I can I store the total time passed, even between launches? So..., first launch, time = 0; Second launch an hour later time = 60; Third ...

iPhone UITableView. How do turn on the single letter alphabetical list like the Music App?

In the iPhone music app, selecting Artist, Songs, or Albums presents a tableView with a verticl list of single letters at the righthand side of the UI that enables rapid scrolling. How do I enable this functionality in my app? Cheers, Doug ...

Getting "Warning may not respond to a" message iphone

Hey Guys, Hey Guys I am calling a method from another method and I continue to get warning:firstViewController may not respond to'-playJS' -(void) playJS { //my code here } ...

How can I filter an array based on the objects in another array in Objective-C?

I have an array of objects in a tableView. I want the user to be able to go to another page and select from a checklist of objects to filter the first array. How should I handle the data from the checklist? I am currently handling it as an NSMutableArray of selected objects. But then how do I filter the first array with the contents of ...

iPhone Dev: Working with unix time?

I'm actually working with fbconnect and I'm trying to get a unix time that represents a month ago. I'm really confused about this since 1970 thing. Cause some body give me a point in the right direction? ...

Iphone sdk - moving a UIImageView with the Accelerometer?

I haven't had any experience with the accelerometer yet and i was wondering how i would move my UIImageView with the accelerometer, can anyone point me to any tutorials or give me a little help? thanks, harry ...

.xib not loading right (iPhone)

For some reason when I load a new view (from a .xib) it'll load the class files, BUT NOT the .xib!! Here's my code: login *lo =[[login alloc] initWithNibName:@"login" bundle:nil]; self.log = lo; UIViewController *loginview = log; [UIView setAnimationTransition:UIViewAnimationCurveEaseIn forView:self.view cache:YES]; [loginview viewWill...