sachu1604 / TemperatureConverter

0 stars 0 forks source link

Review my app #1

Open sachu1604 opened 11 years ago

sachu1604 commented 11 years ago

My app is a complete, please review. Also, I have a question about the "Done Button", when I click on one text-field and then the other; the done button dismisses and doens't come back for the new text-field click. How to solve it? /cc @nesquena @timothy1ee

timothy1ee commented 11 years ago

Looks good! To answer your question, try to use the following UITextField delegate method:

- (void)textFieldDidBeginEditing:(UITextField *)textField {
    self.navigationItem.rightBarButtonItem = 
        [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone 
        target:self action:@selector(onDoneButton)];
}

To understand why that works, try adding NSLog messages in all the UITextField delegate methods. Then, try switching between the text fields and watch the order that the delegate methods are called.

Some minor feedback: