+ Reply to Thread
Results 1 to 3 of 3

Thread: UITextField

  1. #1
    Junior Member
    Join Date
    Oct 2012
    Posts
    8

    UITextField

    Hi
    i have an application where user enter credentials for login and signup.
    i am using UITextField to take input from users. now i want to check UITextField emptiness. so that if user have not entered any value, i will ask them to enter it.
    any help will be appreciated.

  2. #2
    Junior Member
    Join Date
    Oct 2012
    Posts
    8
    i am still looking for help

  3. #3
    Junior Member
    Join Date
    Oct 2012
    Posts
    13
    you can use length function of UITextFields
    Code:
    if([email.text length] == 0) {
    NSLog(@"empty email field");
    }
    email is UITextField.
    hopefully this will solve your problem.

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts