objective c - iOS: split uiview with other ViewController view -


I'm trying to create something like the iPad settings screen, but in my subcontractor on a subview. I can not use UISplitViewController

I have created a subview with 2 subviews, even though there is a tablewell that is the correct controller that I want to add to it is a normal view to see the subview.

This snippet for what I am using

  UIStoryboard * sb = [UIStoryboard storyboardWithName: @ "main" bundle: zero]; View Controller * VC = [SB Instant Viewer Accessibilityfire: @ "VC"] ;; Vc.view.frame = self.customView.bounds; [Self.customView addSubview: vc.view];  

but it crashes with error

Table view: cellForRowAtIndexPath:]: Message sent to deliver

Now I can enable zombie ozes after example

Can anyone understand why this is happening or better than this, such an open source component is doing this? Could?

There is a small extra task that should be performed for a view controller.

  UIStoryboard * sb = [UIStoryboard storyboardWithName: @ "main" bundle: zero]; View Controller * VC = [SB Instant Viewer Accessibilityfire: @ "VC"] ;; [Self add childview controller: VC]; // vc.view.frame = self.customView.bounds before adding subviews; [Self.customView addSubview: vc.view]; [Vc didMoveToParentViewController: self]; // SubView  
after adding

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -