Thursday, 23 January 2014

UITextField.text property clear with nil?


hi,

clearing text property of uitextfield programmatically, best write nametextfield.text = @""; or nametextfield.text = nil; //?

i'm not sure if reason why app not working properly. i'm still trying debug.

i've searched through apple documentation , other forums, , there doesn't seem straight answer anywhere.

thanks
rob
 

the documentation says text property nsstring , nil default. have used empty quote method on nsstrings in uilabels , don't know why wouldn't work uitextfield also. so, seems both methods fine.
 


Forums iPhone, iPad, and iPod Touch iOS Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

No comments:

Post a Comment