Usually Cmd + Shift + K will do a clean but if not, the derived data is in ~/Library/Develop/Xcode/DerivedData cd into that directory and do rm -r [directory name]
Month: October 2019
Trim Whitespace From UITextField in Swift
Let’s say you have a text field and you want to disable the Save button until the user enters something. But you don’t want to allow whitespaces. Here’s one way to handle that. 1. Hook up an outlet to your bar button item so you can set its isEnabled state later. 2. Hook up an… Continue reading Trim Whitespace From UITextField in Swift