Android App Development
iOS App Development
Flutter App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!
Deniel Kerr
Founder. Opencart
Top Partners
UISplitViewController is a container view controller used to display two view controllers in a hierarchical interface, like showing content in the first view controller and related information in the second view controller.
The iOS split view will show the two view controller content based on the size of the device, like if the device is in portrait orientation then it will allow you to see content in both view controller otherwise it will show only one view controller at a time.
Up till now we were able to use split view in iPad only but with introduction of iPhone 6 and iPhone 6+ which support larger screens we can now use this feature in iPhone too.
Step 1: Create a project in Xcode.
Step 2: Remove default view controller and drag a split view controller in Main.stroryboard.
This will add several elements in your project.
Create new files for Table view controller, Table view cell and Detail view controller.
Now, drag a label in to table cell and Details view controller and set the constraints.
Now we need to write a code to show item details when click on it for that write code in DetailViewController.swift file like as shown below
Build and run. At this point, you should see your view controllers.
This is how we can use the UISplitViewController in swift to show the two side by side view controller based on our requirements.
Your email address will not be published. Required fields are marked*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
Name
Email
Subject
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.