OK so I'm taking my first steps into iOS development ( iOS 9 and swift2 ) and I've been using tables to create the look of the first page on my app. This is working great and looks clean etc which works for me.
The issue is I have 4 rows in my table, and I want to open a different view controller depending on which of the 4 rows are selected. Similar to the way OneNote works in that you have a list of things, notes, todo's etc and when you click on one of the items in the list it takes you to the correct view for that item in the list. Does anyone know how I might go about doing this?
At the moment I've only managed to create a single view controller that's launched on any of the row selections, but I want different view controllers for each.
The only way I can see to do it right now is to hard code everything with 4 different table Views on one page, but that seems like a big cludge.
Thanks
Pete
The issue is I have 4 rows in my table, and I want to open a different view controller depending on which of the 4 rows are selected. Similar to the way OneNote works in that you have a list of things, notes, todo's etc and when you click on one of the items in the list it takes you to the correct view for that item in the list. Does anyone know how I might go about doing this?
At the moment I've only managed to create a single view controller that's launched on any of the row selections, but I want different view controllers for each.
The only way I can see to do it right now is to hard code everything with 4 different table Views on one page, but that seems like a big cludge.
Thanks
Pete
Last edited: