I just want to add a tableview to the key window,but i can't see the navigationItem. How can i make it appear. I know I can push it to a navigationController, but in here I want add it to the window. So, how can i do that?
Add a tableView to keyWindow, how can I let it show the navigationItem
177 Views Asked by NewXcoder At
1
There are 1 best solutions below
Related Questions in IOS
- Overlapping UICollectionView in storyboard
- Cannot pod spec lint because of undeclared type errors
- Is the transactionReceipt data present in dataWithContentsOfURL?
- UIWebView Screen Fitting Issue
- ZXingObjC encoding issues
- iOS: None of the valid provisioning profiles allowed the specific entitlements
- How to hide "Now playing url" in control center
- CloudKit: Preventing Duplicate Records
- Slow performance on ipad erasing image
- Swift code with multiple NSDateFormatter - optimization
- iOS 8.3 Safari crashes on input type=file
- TTTTimeIntervalFormatter always returns strings in English
- How do I add multiple in app purchases in Swift Spritekit?
- Setup code for xibs in iOS. -awakFromNb:
- iOS Voice Over only reads out the title of any alert views
Related Questions in WINDOW
- Dismissing the dialog by outside touch event is not working
- Java FrameDemo Error: Could not find or load main class
- C# - Allow only specific windows on top of application?
- javascript click button after be shure that page has completely loaded
- Making a Simple RPG- Creating a new JFrame
- How to give a child window bounds to not go outside the MainWindow in WPF
- How do I scale the graphics of a game?
- WPF maximize main window with center for application
- Creating a folder and registry editing script as an executable
- creating a pop-up(or is it a pop-over?) window for a webpage
- Wicket Modal Window, any way to close it if i click outside of the modal window?
- How to detect when a specific window is closed in java
- how to fit content in browse height
- how do you make a protected window in applescript?
- Window is closing immediately after I run program in PyQt 4 (anaconda) [PyCharm 4.5]
Related Questions in TABLEVIEW
- Javafx TableView with custom row color using CSS
- Unable to update row of tableView after connecting to a url
- How to add constraints to a Custom UITableViewCell
- Howto fix TableView right margin? (swift)
- How to remove imageView from tableview's cell, and reset the cell's height
- swift: send value back to UITableViewController from dynamic cell with UIDatePicker
- Need help adding data to a TableView
- Swift - self.tableview.reloaddata() not working on Master Detail Application
- Swift - passing data between two tableviews (2 viewcontrollers)
- Swift Soundboard App
- Swift: Cannot invoke 'reloadData' with no arguments
- Custom cell segue with data pass error - Swift
- How to populate data in table view with user input on button click in javaFX
- JavaFX tableView edit triggers KeyPress events
- Day for sectionIdentifier for Custom Section Titles
Related Questions in NAVIGATIONITEM
- Swift UNavigationItem button display menu labels
- Top Bar in ViewController ios swift show the previous top bar
- iOS navigationItem titleView image and text
- Can't Set Title of NavigationBar
- in Swift4, replacement of navigationItem.leftBarButtonItem resizes unwanted
- How to add the info icon to the nav bar and implement the showInfoView method?
- PageViewController overlapping NavigationItem and Toolbar
- Customizing the BackBarButtonItem
- Setting title for navigationItem
- Adding Back icon and "Back" text within a UINavigationItem button in SwiftUI
- Add a tableView to keyWindow, how can I let it show the navigationItem
- custom navigationitem titleview wrong frame
- Back button not working on navigation controller
- searchBar not centered in navigationItem
- Black bar appears under navigation bar
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
A view controller's navigationItem only appears if the view controller is put into a navigation controller. It is the navigation controller that displays a view controller's navigation item. If you want the view controller's navigation item displayed (in a navigation bar), then create a UINavigationController passing in your UITableViewController as its root view controller. Then make the navigation controller the window's root view controller. You will now have a navigation bar at the top showing the table view controller's navigation item and the table view filling the rest of the screen.