With the beta 3 of Xcode the following piece of code doesn't work anymore:
func keyboardWasShown (notification: NSNotification)
{
var info = notification.userInfo
keyboardSize = info.objectForKey(UIKeyboardFrameBeginUserInfoKey).CGRectValue().size
}
at the instruction:
keyboardSize = info.objectForKey(UIKeyboardFrameBeginUserInfoKey).CGRectValue().size
XCode return the error [NSObject : AnyObject] does not have a member named objectForKey.
So i changed the code like this:
func keyboardWasShown (notification: NSNotification)
{
var info = notification.userInfo
keyboardSize = info[UIKeyboardFrameBeginUserInfoKey].CGRectValue().size
}
but XCode returns the error "String is not a subtype f DictionaryIndex"