I have the problem that I want to show a UITabbar when a specific UITableViewController is shown and the UITabbar should disappear if I go back to the original UITableViewController.
Is this possible?
Regards,
Sascha
UITabBar is a UIView, so you can add it to any view you like.
Related
I'm newbie with iOS and asking for direction.
I want to make a page which contains navigation buttons on top and when tap load different UICollectionView's as you can see on the app screen taken from "Fancy". Also buttons line have to be fixed on top while scrolling down. (just like in the screenshot)
Which is the right approach?
Base class to be UICollectionViewController and adding as SubView
Using UIScrollViewController?
etc...
Thanks in advance.
Base class should be UiViewController implementing UICollectionViewDelegate
UIViewController <UICollectionViewDataSource,UICollectionViewDelegate,UICollectionViewDelegateFlowLayout>
Create different NSArray for each Category of your project as datasource of UICollectionView
use UISegmentedControl for switching the datasource of UICollectionView and reload UICollectionView to display different content.
You can customise your Segmented Control as you wanted.
Implement UITabbarController for the bottom bar to enter any other views
There are a number of ways to go about this. The simplest would probably be to use a UIViewController subclass whose view contains a UISegmentedControl subview (for the navigation controls) and a UICollectionView subview for the content.
I have a on top of my tableview another view with 3 buttons on it. You can see my storyboard over here.
When I build and run. This view shows up at the bottom of my tableview. Someone has an idea how this is possible?
Kind regards.
Your UIView is subview of UITableView, to make it on top of the tableView, just drag it out of UITableView scope.
If you select the UITableView then in the Xcode menu Editor->Embed In->View
This will embed the UITableView in a UIView. You can then drag your UIView out from the UITableView and place it at the same level as your UITableView.
I am using SplitViewController. Now i want to present a UIView similar to UIAlertView when i select a row in detail view controller.
I have tried presenting the view like this,
[self presentModalViewController:view animated:YES];
but my view is getting loaded from the bottom. So can anyone give me some suggestion or sample to achieve this.
Also i want to increase my master view width. I tried to change the size in pop over but it doesn't work.
Thanks in advance.
Add your view as a subview to the (split-)viewcontrollers view
[splitViewController.view addSubview: yourView];
You can set your views background color to clearColor and create another view on it to make it look like a smaller view in the middle of the screen.
I have a segue with a uiimageview and 2 buttons to take a picture and choose one from the library. Then I want to go to the next segue and see this uiimageview there also.
So I need to send the image from the uiimageview to another segue om the storyboard.
Thanks in advanced,
Tim
Add an image property to the second view controller and set it in prepareForSegue:sender:.
There is a previous question that goes into this in some detail.
I have a UIViewController named "RootViewController" which contains a UITableView and a UITabBar (2 TabBarItems - Favorites and More).
When the View is being displayed, the TableView and TabBar are visible. Now I want to load an additional view when pressing the other TabBarItem (More). And backwards, but the tabbar should be available. (User can press Favorites)
How can this be done?
BR,
mybecks
If you want the UITabBar to be visible on more than one screen you should use a UITabBarController. That controller should hold your different UIViewController.
It's wheel explain in the documentation on how to implement that controller.