iphone

Portrait Age Progression Algorithm

Are there known algorithms or a good approach to aging a person's photo? Assuming you know the position of eyes/nose/mouth/shape of head what techniques exist to age someone's portrait? For the iPhone, there are apps like AgingBooth and AgeMyFace, and I was wondering how they accomplished that. ...

- (NSString *)instanceMethod

Dear iPhone Developers, I have an instance method which is meant to return a string - (NSString *)newFile:(NSString *)inFile andFileNumber:(NSInteger)aNumber { return [NSString stringWithFormat:@"%@.o%i",inFile,aNumber]; } I call this method as outputFileName = [self newFile:inputFileName andFileNumber:newNumber]; // where input...

NavigationController as a subView

Hi, I'm new to iphone development. I have a tabBar App, designes in interfaceBuilder. When I pressão the About button, it flips to a view where I put the App info. In this view, I need to have a navigaionController with a tableView. How can I do this? I'm having a lot of trouble to do this. Anyone can help Me? iChat: [email protected] ...

Auto upload crashlogs iPhone

Hello all, Quick question for you. Will I have any issues with the Appstore approval process if my app periodically checks for crashlogs and uploads it to a server? Is this even possible? If not, can I have something like a global exception handler and make my app terminate gracefully, while being able to upload exception messages to t...

Problem rotating UIImage

My code below, anyone know what is happening? Sorry about the incomplete information, the image just desapear! - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { UIImage *imCaptured = [info valueForKey:@"UIImagePickerControllerOriginalImage"]; CGImageRef cgirCro...

Two cells in one row in UITableView

I'm trying to build a grouped UITableView cell like the table in user details in Twitter's app (former Tweetie app). It's a cell with two sides, and you can select any of them separately (and the background turns blue, like a rounded button). Anyone did something like it or know how they made it? A screen shot from the view (it's the ...

periodically check value of UITextField

I have a scanner that is reading text into a UITextField, looks like it is one character at a time. So every 1/2 second or so I want to check the value of that UITextField so I can grab the value. ...

iPhone Web App splash screen delay

I've built an iPhone web app and have done all the steps to make it look like a native app: app icon, prevent scrolling, prevent selection, use touch-based js methods, etc. However, I'm having a tough time with the splash screen. I have tried a 320x460 PNG and JPEG, cached with a manifest file. The splash image does appear, but only aft...

Using setters / mutators in dealloc

To be specific, I'm talking about writing a dealloc like so: -(void)dealloc { self.myvar = nil; [super dealloc]; } I understand this goes against Apple's recommendations. I also understand that it can cause issued with KVO as well using the setter on a partially deallocated object. But if I'm making the calls in this order ...

Core data migration from simulator to device

I'm using Core Data and my app works perfectly in the simulator but on the actual device the database is empty. I enabled CoreData logging, so I see the actual tables being created, and queries run but all the queries are empty. I also copied the app from the device and verified that the schema is created but with no data. What am I m...

NSDateFormatter returns a date off by a day

In my iPhone app, I am trying to get the EEE MMM dd from a date string received by a web service. For all dates where time is < 07:00, the NSDateFormatter returns a date off by 1 day. For example: Date to format: 2010-11-17T05:00:00, formatted date result: Tue Nov 16 Here's the code snippet: NSDateFormatter *dateFormat = [[NSDateForma...

How to respond to interface orientation changes?

I know the app delegate can say "yo man, I want thais new landscape orientation!" or "no thanks, don't want landscape!" and then the device won't do it. How to implement this? ...

NSDateFormatter Date Format for date/time with colon in Time Zone

I am having a problem converting a date/time string to an NSDate. The date string I need to convert is: 2002-12-24T00:00:00-07:00 My date format string is currently yyyy-MM-dd'T'HH:mm:ssZZZ The problem is the colon in the time zone. ZZZ returns a string like: -0700 (without the colon) How can I convert a string WITH a colon in the ti...

Definitive algorithm for determining most accurate returned from iPhone CoreLocation??

Has anyone nailed this down yet? I've read a lot of forum postings and I still can't tell if this is a settled question... Given that didUpdateToLocation() can return cached or inaccurate information how do you tell when you have an accurate fix? When you set desired accuracy to kCLLocationAccuracyNearestTenMeters, HundredMeters, Kilom...

Is there a good rule of thumb to help decide when it is appropriate to use Quartz 2D v. Core Animation v. OpenGL in an iPhone/iPad app?

I'm looking for is a heuristic for determining which of the primary graphics methods for iPhone/iPad development would be the most appropriate solution for a given problem. ...

Handling HTML SELECT Options with event delegation to javascript on iPhone Safari

We are developing a web application with GUI customized to use on iPhone. A page on the app has 3 subsequent SELECT dropdowns, where selection of an option from 1st dropdown derives the options for 2nd dropdown, and so forth. The subsequent dropdown options are populated by javascript based on onchange event on previous dropdown. The pr...

iphone - moving a UIImageView

I'm having difficulty moving an image to another location after the first animation is finished. the image animates at a point that I've specified, then stops (that works fine). I would then like to move the image to another location and repeat. here's my code: -(void) loadTap { NSArray *imageArray = [[NSArray alloc] initWithObjects...

iPhone Problem with custom cell

I try this code but it's a mistake because i have a repetition of title and description... Someone can help me please? - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; CustomCell *cell=(CustomCell *)[tableView dequeueReusableCellWithIden...

iPhone openID authentication and embed HTML

Question 1 I want to make IPhone application that uses OpenID for authentication. I have found janrain described here : http://techcrunch.com/2010/04/05/janrain-openid-iphone-apps/ this is exactly what I want! However is commercial licenced is there any open source/free alternatives? Question 2 I also want to later make Android , W...

how to find out is a long string contatins a word obj c, iphone

I have a long string that has a running list of all the "words entered" in the text box. I want to be able to check the long string against a one word string to see if the long string contains the word in the short string. Any ideas? I've tried this and a few other things, where newString is the long string and currentTextrightnow is ...