I'd like to load a plain UIView, a UIWebView and a UITableView all in the same nib. Is that possible in the same UIViewController? Is it possible to assign multiple UIViewControllers to the same Window?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- how do you prevent page scroll in textarea on mobi
- Custom UITableview cell accessibility not working
相关文章
- Could I create “Call” button in HTML 5 IPhone appl
- Unable to process app at this time due to a genera
- How do you detect key up / key down events from a
- “Storyboard.storyboard” could not be opened
- Open iOS 11 Files app via URL Scheme or some other
- Can keyboard of type UIKeyboardTypeNamePhonePad be
- Can not export audiofiles via “open in:” from Voic
- XCode 4.5 giving me “SenTestingKit/SenTestKit.h” f
Something close is possible. I recently answered your question about multiple views in one window; the approach for having multiple view controllers is very similar, although they do need separate nib or xib files.
The way to do it is as follows:
Programmatically, it would look something like (repeated for each view controller you want to add):
Keep in mind you may need to adjust the
frame
property of the view before you add it, depending on where in the parent view or window you want to place it.