January 2012
Beginner
655 pages
16h 35m
English
- (BOOL)shouldAutorotateToInterfaceOrientation:
(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
return (interfaceOrientation ==
UIInterfaceOrientationLandscapeRight ||
interfaceOrientation ==
UIInterfaceOrientationLandscapeLeft);
}
The frame property defines the rectangle occupied by the view, with respect to its superview (the view that contains it). Using the frame property enables you to set the positioning and size of a view. Besides using the frame property, you can also use the center property, which sets the center of the view, also with respect to its superview. You usually use the center property when you are performing some animation and just want to change the position of a view.