Tag: ios4

How to clear MKMapView cache?

I am trying load map region and MKMapView delegate methods are not being called on second or subsequent load. None of the delegate methods viz – (void)mapViewWillStartLoadingMap:(MKMapView *)mapView; – (void)mapViewDidFinishLoadingMap:(MKMapView *)mapView; – (void)mapViewDidFailLoadingMap:(MKMapView *)mapView withError:(NSError *)error; are ever called. The Only methods called are – (void)mapView:(MKMapView *)mapView regionWillChangeAnimated:(BOOL)animated; – (void)mapView:(MKMapView *)mapView regionDidChangeAnimated:(BOOL)animated; It seems that […]

Reuse cell… :(

I have a table with 9 sections and 56 rows. I want to add a text label for each cell. I created a NSArray menuList with 56 NSDictionaries and an array containing the number of rows in each section (sectionsArray). Here is my code, but it doesn’t work properly at all: // Customize the appearance […]

Graph API and iOS

How can I use/implement the new Graph API from facebook in iOS programming (objective C)? Also parsing the JSON file returned by the API? I can’t seem to find any examples out there. Facebook resources doesn’t give too many details on iOS development.

iPhone checking for existence of AVCaptureSession Class

I have integrated a library that uses AVCaptureSession to capture a photo from the camera. As the AVCaptureSession is only available on iOS 4 devices, I want to disable this integrated functionality for older devices. I know that it should be done by weak-linking the AVFoundation Framework and checking for function existence. Weak-linking is easy […]

How to show the specific image from PhotoLibrary?

Possible Duplicate: display image from URL retrieved from ALAsset in iPhone In my Application I need to get specific image from Photo Library, with use of didFinishPickingMediaWithInfo i am able to get the Imagename and ImagePath. I am storing Imagename, ImagePath in Database. But, how to show that specific image with use of the Imagename […]

How to detect space, and special characters like :, ?,`,~, etc in text of a textfield in iPhone SDK?

How to detect space, and special characters like :, ?,`,~, etc in text of a textfield in iPhone SDK?

Core Data and UITableView Practices/Questions

Im new with iPhone programming and for that matter CoreData. I was just wondering about some general practices and ways of doing things. I am trying to add/load entities from CoreData to a UITableView. So in the AppDelegate I am loading an NSArray of entities (NSManagedObjects) on didfinishlaunchingwithoptions and populating the NSArray for my table […]

How to add Streetview function in my MKMapView?

I’m looking to add Streetview function to my current iphone app maps I made with MKMapView. Any idea how to do this? Thx for helping, Stephane

MPMoviePlayerController not working in iOS4

I’m using the first answer from iOS 4 + MPMoviePlayerController to try and get MPMoviePlayerController to play. In the simulator (iPhone device with iOS4), I hear sound but no video. On the device (iPhone 3GS and iOS4), I don’t get anything. Here’s my code: MPMoviePlayerController *moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL fileURLWithPath:moviePath]]; moviePlayer.movieControlMode = MPMovieControlModeDefault; if […]

Send image and text in email from within app

How can I send an image along with text, which is in the form of tabular data, in an email from within my app? Please help and make suggestions. Thanks.