==> specifies breakpoint
NSString variable is not accepting value
if i keep only starting 2 lines then the value of text field are not accepted at all but their is no error and execution continues..
but when i print breakpoint in gdb it shows following error description
Printing description of loginurl:
A syntax error in expression, near `variable)'.
A syntax error in expression, near `variable)'.
Also, if i replace the following same error exists
NSString variable is not accepting value
Code:
-(IBAction)btnLoginGoClicked:(id)sender
{
NSString *userid =txtUserId.text; ==> value "abcd"
NSString *pass = txtPassword.text; ==> value "yyy"
NSString *loginurl= [[NSString alloc] initWithFormat:@"http://abc.com/email=%@&password=%@" ,userid,pass];
==>NSString* loginurl <variable nil
NSURL *url = [NSURL URLWithString:loginurl];
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
[loginurl release];
[request setDelegate:self];
[request startAsynchronous];
}
but when i print breakpoint in gdb it shows following error description
Printing description of loginurl:
A syntax error in expression, near `variable)'.
A syntax error in expression, near `variable)'.
Also, if i replace the following same error exists
Code:
Replace ==>
NSString *loginurl= [[NSString alloc] initWithFormat:@"http://abc.com/email=%@&password=%@" ,userid,pass];
with ==>
NSString *loginurl=@"test";
Same code runs in other project