iphone

MPMediaItemCollection Count - NSUInteger

I'm trying to use the MPMediaItemCollection count property to sort the items in an array. When I try to sort an array with this NSUInteger property, and it doesn't work. When I try to print it (NSLog(@"%lx",count);) it doesn't print correctly. How do I get the NSUInteger to work correctly? ...

How to Identify a touch/tap on an iPhone screen

I need to know which method is used to identify tap/mouse click.I know - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {} -(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {} which are triggerd when cursor moved. But I want to do following things- I have an image. When i will click it, similar two image...

Image Caching Problem

Hello, I am Storing the Image taken from UIImagePickerController and saving in the Directory like: NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *path = [NSString stringWithFormat:@"%@/%@", [paths objectA...

iPhone - insertSubview makes ObjectAlloc jump

Whenever I add a new viewController my ObjectAlloc jumps up really high and never comes back down. Even after calling removeFromSuperview. Is this normal? if((UIButton *) sender == gameArcadeBtn) { GameArcade *gameArcadeController = [[GameArcade alloc] initWithNibName:@"GameArcade" bundle:nil]; self.gam...

UITextView Rich text?

Hi there, I was wondering if UITextView can display rich text? I want to have simple formatting on my read only text (like different alignment for different parts of the text). if not, what view should I use? ...

Input text on UIImageView

Is it possible to allow user input text on a UIImageView, just like the text tool in painter? I cannot find any resource on this topic? ...

Can audio files be saved like photos and movies in iphone using objective C?

hello all, If our iphone application uses the inbuilt camera to click any picture, for saving the image into iPhone's photo library, we use UIImageWriteToSavedPhotosAlbum method. Likewise, to store any video recording into the iPhone, we use UISaveVideoAtPathToSavedPhotosAlbum Is there any method to save any audio file into iPhone's So...

iPhone User Defaults starting values

I've set up my app's user defaults to contain two toggle switches - one for help, one for sound. They are working however the starting values are false even though I've set them to be YES: I use BOOL variables to track these values in the app, so I'd like to store YES/NO values. What else do I need to do to get the correct starting va...

reload uitableview simultaniously

i have to reload uitableview simultaniously using a thread. i'm already using two threads for loading data from web. Is it possible using a thread for reloading tableview? Is there any other way? ...

Using Xcode 3.2, which performance tool to see how much memory my iPhone app is using?

Also, is running an app in the simulator sufficient to get a ball park estimate or will I get very different values from running on the device? ...

Load data from a php file to iphone

Hi all, I am having a php file and a mysql database. i need to load the data from my mysql database to the iphone. can anyone help me in this. What is the best way to do that. Thanks in advance. Shibin Moideen A. K ...

Recommended Mac GUI data entry tools for populating SQLite databases for iPhone app use?

While making an iPhone app that refers to a (not yet existing) SQLite db Are there any good, cheap programs for data entry? ...

Is it good to show a UIPickerView with only small data size?

I have a view with a UIPickerView. The data for the UIPcikerView is runtime-driven. The data size for the UIPickerView varies from 2 to 15. Is UIPickerView still a good choice under these conditions? I do not want to use a UITableView because there are some other controls I need to display in this view. ...

Creating glossy icon-buttons like on the home screen via interface builder?

Is there a way to create buttons similar to the glossy icon-buttons on the home screen on the iphone but in your own app? The only thing i've found to create image button is to create rounded rect-buttons and set the image or background property on it, but that does not automatically create the glossy surface and rounding. ...

HowTo initialise MKMapView with a given user location?

Hey, My app knows the current user position (CoreLocation.framework). As soon as the user opens a new MapView his iPhone starts searching for the current position again. Is it possible to skip that or to change the first user position for mkMapView? Edit: Is it possible to overwrite MKMapView and use an other LocationManager? ...

How to autorotate from portrait to landscape mode?

How can I autorotate an image from portrait to landscape mode on the IPhone? ...

Building iPhone app on linux

Hi all is there way to build iPhone app on linux without using xcode.I want to make use of ant. ...

How to crop image in UIScroll view?

I have implemented zooming functionality of UIIImageview in UIScrollview. Now i want to crop image from the zooming image. ...

How do I create a new image by drawing on top of an existing one using Quartz?

i have a view with uiimageview i assign this uiimageview image by camera..now i want to do some drawing onto image....using coregraphics.i want to do something like this... select an area by touching and drawing line when line joins something like circle or any shape..i want to change that particular area in to something else for example...

View shows only half of width in landscape mode

I have one view controller,in that i have 1 UIButton ,when i click on that button one view opens ,but when i move it to landscape mode at that time the view shows only half of width not full.what should i do????? Thanks and welcome for answers ...