I have a regular UITableViewController and a UITableView as its only view, and I want to have an UIActivittyIndicatorView in addition to the table view.
So I need a view structure like this:
view (UIView):
tableView
activityIndicatorView
What’s the cleanest way to do it without InterfaceBuilder? I guess I need to override the loadView: method, but I haven’t succeed doing it so far.
UPDATE for ARC and iOS 5.0+ (I think old version needs to be removed already as we have new, better API’s:)):
Add to header .h file of your
UIViewControllersubclass:And override methods in .m file of your
UIViewControllersubclass:=============================================================
non-ARC version, iOS < 5.0:
You should override method
Also, add
at the header file
and
to the .m file