Another newbie question: if I have a UIViewController
that shows a navigation bar at the top And the toolbar shown below, how can I ask the View Controller for the coordinates ("frame") of the "visible" area of the scene? ( self.view.frame
and self.view.bounds
return tap) ...
If I explain you correctly, you can calculate your frame size.
# Define Navigation BarHit 44 # Define KettleBlight 44 # Define SystemBurHight 20 #define kWindowWidth 320 #define kWindowHeight 480 int width = kWindowWidth; Int heigth = kWindowHeight - kNavigationBarHeight - kToolbarHeight - CesistBarHeight; CGSize myViewSize = CGSizeMake (width, height);
This is true if your toolbar and toolbar are of standard size and your layout orientation is portable.
Comments
Post a Comment