iphone

How to get information about e-mails in Mail.app

Hi, If a user is reading e-mails in Mail.app and closes this application and opens my application .I want to show the information about the mail read by the user. Is there some way to get information about the email (in Mail.app), so that I use it in my application. Thanks. ...

Detect phone calls in iPhone

Hi. I'm developing an app in which, among other things, the user can input a phone number. Later, while seeing the inputed information, I display the phone number in a UITextView which detects the phone number automatically. In an iPhone, when the user presses the phone number, he is automatically asked if he wants to make a call. This...

If I install SDK 4.0 of the iPhone OS will I still be able to create a non 4.0 iPad app?

If I install SDK 4.0 of the iPhone OS will I still be able to create a non 4.0 iPad app? I would ideally like to submit a iPad app in the next month but am also hoping to develop a 4.0 iPhone app is it possible to use the 4.0 SDK to create 3.0 iPad apps or am I going to need to computers? ...

iPhone image app not releasing memory as in instruments using imageNamed

hi, im building iPhone app that downloads images (UIImageView) from internet and adding them to UIScrollView. This scroll view could contain 20 or more UIImageViews. Iam adding UIImages to UIImageView like this: UIImageView *newView = [[UIImageView alloc] initWithImage: image]; Then I just scroll these images like in photo app. Proble...

CCSprite following a sequence of CGPoints

I'm developing a line drawing game, similar to Flight Control, Harbor Master, and others in the appstore, using Cocos2D. For this game, I need a CCSprite to follow a line that the user has drawn. I'm storing a sequence of CGPoint structs in an NSArray, based on the points I get in the touchesBegin and touchesMoved messages. I now have t...

UINavigationBar not updating on 'back' in landscape

Hi all. I'm working on a UINavigationController driven iPad app (testing in the simulator). There are only two UIViewControllers on the nav controllers stack. For demonstration, lets call them SetupController and ContentController. SetupController pushes a ContentController on the stack with [self.navigationController pushViewControl...

Custom cell just failing

Hi, I'm trying to use a custom UITableViewCell, and I've placed it in the same nib file as the UITableView controller. For this, the files are: NTItems.h, NTItems.m and NTItems.xib. I have defined the cell in the header file: IBOutlet UITableViewCell *cellview; and I've correctly applied the property: nonatomic, retain so it's there:...

Objective c formatting string for boolean?

What formatter is used for boolean values? EDIT: Example: NSLog(@" ??", BOOL_VAL);, what is ?? ? ...

How to send a array as a parameter to a web service using SOAP and objective C.

I'm working in a iPhone app that needs to send a array as a parameter using SOAP. this is the current request and connection: NSString *soapMessage = [NSString stringWithFormat: @"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" "<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/20...

Is MonoTouch now banned on the iPhone?

A recent post by John Gruber notes that the following legalese: 3.3.1 — Applications may only use Documented APIs in the manner prescribed by Apple and must not use or call any private APIs. Has been revised as follows: 3.3.1 — Applications may only use Documented APIs in the manner prescribed by Apple and must not use or call ...

CoreData is saving model without the save: method being called

I have a list of items with a plus button in the navigation bar that opens up a modal window containing a table of the models attributes, that displays a form when the table items are clicked (pretty standard form style). For some reason if I click the plus button to open the form to create a new model, then immediately click the done b...

How can I make a ViewController conform to multiple protocols?

I want to include Core Location and I'm trying to follow this tutorial: http://www.mobileorchard.com/hello-there-a-corelocation-tutorial/ and I am using SDK 3.2.2. @interface MainViewController : UIViewController <FlipsideViewControllerDelegate>{ is the code right now. ...

Best way to show a loading screen in an iPhone app?

I'm building what is essentially a web app. Every piece of data has to be fetched from a web API. So, every UITableView that I show takes some amount of time to fill with data and I'm struggling to find a good way to show the user a loading screen. Right now I'm popping up an action sheet, but that just seems a bit wrong. Ideally, I'd p...

How do you uninstall old custom installs of Xcode?

Hi, When I install a beta, I do a custom install into a separate folder to the latest release version. I have several old beta installs. How do I uninstall the old custom versions of Xcode? Can I just trash the folder? Our do I need to use Terminal? The release notes suggest to use this: $ sudo /Library/uninstall-devtools -...

UIView animation -- horizontal page curl... like a book?

I'm pretty sure I've run across this animation at some point, but I can't remember where or how to do it! I want the equivalent of UIViewAnimationTransitionCurlDown but a full page horizontal curl. Does anybody have code that does this? Thanks! ...

Is it possible to reset NSURLConnection after providing credentials?

I am calling a REST service that requires basic auth and I respond to the didReceiveAuthenticationChallenge delegate OK NSURLCredential *credential = [[NSURLCredential alloc] initWithUser:self.user password:self.password persistence:NSURLCredentialPersistenceForSession]; [[challenge sender] useCredential:credential forAuthentic...

How to implement checkout/basket system

Hi, I'm making an app for fun and would like to know how to implement a checkout/basket system on the app. Basically, a list of products is pulled in from a web server in form of XML file, which is then displayed in a UITableView controller. A tap on the cell takes the user to a more detailed overview of the product. The app would need...

Stopping network activity indicator.

I used the below code to load a webpage. Everything works fine, but I want to stop the network activity indicator after completing loading the webpage. How can we know that the webpage is loaded completely. Anyone please help. UIApplication* app = [UIApplication sharedApplication]; app.networkActivityIndicatorVisible = YES; // to st...

URL filtering for UIWebView on the iPhone

Can someone please shed some light on how I would get this to work: http://www.icab.de/blog/2009/08/18/url-filtering-with-uiwebview-on-the-iphone/ I tried making the "FilteredWebCache.h" and "FilteredWebCache.m" files in my project, but it said that "FilterManager.h" did not exist. What am I meant to do with those files? This I put in ...

UITabBarItem MultiLine Title

Is it possible to have a multiline (2-line specifically) UITabBarItem title? I have some long strings that don't fit well on one line. ...