KANEWONG
asked on
iPhone app training
Hi;
I am learning to code a simple iPhone app but I got stuck, pls help to solve my problem.
Suppose, when I type my message in the text box and press the "Press Here" button, it should show what I typed in the "label" area but it did not.
It stopped at the breakpoint. Pls see my snapshot.
Screen-Shot-2013-01-08-at-11.02..png
I am learning to code a simple iPhone app but I got stuck, pls help to solve my problem.
Suppose, when I type my message in the text box and press the "Press Here" button, it should show what I typed in the "label" area but it did not.
It stopped at the breakpoint. Pls see my snapshot.
Screen-Shot-2013-01-08-at-11.02..png
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Do you get any error message?
If yes, what is that?
If No, Just stopped on breakpoint - Press F6 to execute next step
- Deepak Lakkad
If yes, what is that?
If No, Just stopped on breakpoint - Press F6 to execute next step
- Deepak Lakkad
ASKER
no error found.
tried to press F6 but no help
tried to press F6 but no help
ASKER
OK.
after changing (bool) to (BOOL) as below, my simple app work as expected with your guys suggestion.
- (BOOL)textFieldShouldRetur n:(UITextF ield *)theTextField{
[textBox resignFirstResponder];
return YES;
after changing (bool) to (BOOL) as below, my simple app work as expected with your guys suggestion.
- (BOOL)textFieldShouldRetur
[textBox resignFirstResponder];
return YES;
ASKER
per Deepak instruction, I add two commands to declare textBox and label
@synthesize textBox;
@synthesize label;
also, I have tried the xib wire up
but still no luck.