I want to get the value of a textfield and want to compare with the string.
I used the below code
username =@"test";
The above code is not working eventhough I entered the "test" in the txtusername.
I used the below code
username =@"test";
Code:
if ( [txtusername text] == username)
{
NSLog(@"Equal");
}
The above code is not working eventhough I entered the "test" in the txtusername.