My current layout for a TTTableViewController is as the following
Navigation
TTTabStrip [Item1 Item2 Item3]
Table Rows
Table Rows
.
.
Table Rows
TabBar [Tab1 Tab2 Tab3]
What I want to do is, when clicking Item2 on the TTTabStrip, those Table Rows will be replaced by a UIWebView, but others (TTTabStrip/TabBar) remain unchanged.
Any suggestion to implement this?
You can two options:
add a
UIWebViewon top of theTTTableViewControllerview by setting the webview’s frame to the tableview’s frame. This is a easy and fast solution. when someone clicks on a different tab, you will need to remove the web view from the view and release it.you can create a new view controller with a web view, and extend a shared view controller that contains the tab bar and strip bar. So overall you will have a base controller, and 2 view controllers that extend from that base controller. I would do it only if you’re planning on extending your views in the future.