I'm trying to animate adding a new subview to a table view. (When the user clicks on the Plus sign button on the nav bar above the table view, I want a subview with a text field and a button to slide down from under the nav bar).
However, when I try to call [UIView beginAnimations:@"textFieldSlide", nil]
the compiler warns me that:
Line Location RootViewController.m:41:
warning: 'UIView' may not respond to
'+beginAnimations::'
The autocomplete in Xcode also fails to see that method, as well as commitAnimations
.
Am I missing an import to get these methods?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…