iphone

ABUnknownPersonViewController problem - adding data to existing contact

Hi, I'm having a problem with the ABUnknownPersonViewController. I want the user to be able to save or edit a contact to the address book. All is fine when "Add contact" is used. But when the user wants to add data to an existing contact I run into problems. The ABUnknownPersonViewController displays a PeoplePicker but when the user sel...

iOS / Core Data: How to create a predicate for words that start with a range of characters?

The 'Like' is pretty simple it seems, it only supports ? and * I believe, kind of like old-school wildcards. But I want to do this: Find all words that begin with a given range of characters... for example a-j. So I got it to find all words that start with say, the letter j: NSPredicate *predicate = [NSPredicate predicateWithFormat:@"...

Dismissing UIPopoverController when using ABNewPersonViewController

I have an "add Contact" button which when on iPhone I present a navigation controller with root view controller of an ABNewPersonController modally. If on iPad I have got a popover which I can display with the new person controller inside - nice. The problem comes when trying to dismiss. I can dismiss the popover when touching...

retina display graphics on the iPad not showing up - why?

I've installed my iPhone app on an iPad. When I tap this "2x" button, the app gets scaled up, but it doesn't use my retina display graphics. Isn't that somewhat stupid? I am sure I did something wrong! What must I set in the info.plist or elsewhere that the iPad will use my retina display graphics when the app is watched in 2x mode? ...

UITableView scrolling issue after memory warning

I created a UITableView similar to the iOS address book that allows you to pick an image on one row and and there are additional custom cells that have text fields for entering data. I run into this problem only after loading a large image and get a memory warning in the console: Received memory warning. Level=1 I load the image using...

How do I concat a string + int and match it to an item in an NSArray?

Heres my Array. NSArray *arrayData = [[NSArray alloc] initWithObjects:@"1 days", @"7 days", @"14 days", @"28 days", @"1 months", @"2 months", @"3 months", @"4 months", @"6 months", @"1 years", @"2 years", @"once", nil]; Heres my NSString and my integer. int interval = 2; NSString *itype = @"years"; I need to join b...

Need PhotoBooth Mac feature in iphone app

Hello All, Have a look on following application http://itunes.apple.com/us/app/fatbooth/id372268904?mt=8 i think they are using the same feature provided my PhotoBooth MAC. Please suggest any api or any other possible solution so that I can build an iphone application Thanks ...

Expiration certificate iPhone "in house" enterprise deployment

Hi everyone, Let's admit that I deployed an app on 100 iPhones, using the apple "in-house" deployment of the enterprise program. All of them will be connected to the internet. What will happen at the expiration of the distribution certificate ? All my employee will need to download the app again, signed with the new certificate ? Or ren...

Is it possible to bold an NSString?

Is it possible to make an NSString bold? If so, how? I am not using UILabel or UIIextView for some reason. ...

clipping to bounds with UIViewContentModeScaleAspectFill

Hi everyone: is there any way of controlling where UIViewContentModeScaleAspectFill clips an image? In my case, images are always clipped around the center of the image. Is it possible to make it clip around the top? Thanks! Antonio ...

is it possible to save NSMutableArray or NSDictionary data as file in iOS ?

i want to save NSMutableArray or NSDictionary to save as file and close application. then reopen application and read some data from that file to use. is it possible? ...

About the orientation of iPhone

How to get the current orientation of iPhone? I surfed this site, and found two methods as followings. [UIApplication sharedApplication].statusBarOrientation; [[UIDevice currentDevice] orientation]; Which one is the right way to get the current orientation ? I tried two methods under simulator 4.1, but there are some problems for bot...

NSLog in submitted app

I had the misfortune of submitting an app with an NSLog still active. It very rarely fires, but I would like to know what are the chances of my app being rejected because of that? I am NOT asking how to supress NSLogs. I already know how to. It is just a stray NSLog which made it in by mistake. ...

Find all controls of a type in a UIView

I am looking for a way to automatically localize texts on buttons/textfields etc and for this method I need to find all (for example) UIButton's on a UIView. I tried the following 2 methods, but they both do no work like I want them to work: for (UIView* subView in self.view.subviews) { NSLog(@"object class : %@", [subView class]);...

Make a View similar to Info-view of Maps

Hi, I am trying to make a view similar to the Info-view of the Maps-app i want to have a textview, 2 tableviewcells and a button in my view. which 1 one of the cells have a textfield and the other one to have a label. I tried to look it up on the internet, but I wasn't able to find any. also I don't know what keywords I should use. Pl...

Looking for book or tutorials for implementing face detection in iphone sdk?

I am Looking for book or tutorials for implementing face detection in iphone sdk? OpenCV is one but it takes more time to detect faces. I want to learn algorithms used for face detection. Once i got a logic then it can be easily converted into programs. Plz send me appropriate tutorials or ebook links ??? ...

App submittion from clients side

Hi, I am developing an application which is going to be branded to for different clients. For some clients I will release the application myself using my developer account @ apple, but some clients want to release the application using their own developer account. Off course they can create an account for me which I can build the applic...

Finger drag on your bottoms

Hello all, assume that a five buttons side by side, i need to know how to make them accept (Called) the drag from outside to inside the border of each button i.e. Like the piano if u drag your finger every button called and make sound Thanks ...

MPMoviePlayerViewController modal quits unexpectedly

Hello all, I am currently trying to play a movie (MP4) using base sdk 3.2 for ipad. I managed to get the movieplayer to pop up but it closes down straight away. I tried changing the file format to read an MP4 link http://www.yo-yo.org/mp4/yu3.mp4 Below is the test code:(Not taking care of mem release etc..yet) NSURL *url = [NSURL fil...

UIMenuController with a set of colored button

I have a requirement - in an application i'm currently developing - to show a list of colors upon clicking on a button so the user can select a single color out of the list. I strongly believe the best way to this would be to have a UIMenuController popup - just like you'd see the copy/cut/paste menu in iphone - and show the list of colo...