The "Favorites" tab in my app that are inside, of course, the item (Uaitibl in Viwu) user "favorites" Is set to.
My problem is this: when, initially, the user does not have a favorite, I want to show with a UIView (a UIButton "Add to Favorites") and not UITableView ...
Is this possible?
Of course, this will be conditionally simplified in your code, preferably by viewWillAppear: method inside. Something like the following:
- (zero) visual apple apparatus: (BOOL) animated {[super visual avier: animated]; If (self.hasFavorites) {// Add UITableView as a Sbwu} else {// Add UIButton as a Sbwu}}
Comments
Post a Comment