navigationcontroller

Adding UITabBarController and have no NavigationController

那年仲夏 提交于 2019-12-12 10:10:04
问题 As I'm new in Xamarin.IOS, I'd like to ask a question. I've followed this example for adding UITabBarController in a Xamarin.IOS project. When I initialized RootViewController by an instance of TabController, it works fine and I have all tabs. BUT my NavigationController set null ! it means that : NavigationItem will disappear navigating between viewControllers are not possible by this code : this.NavigationController.PushViewController(new ProfileViewController(), true); because the

content handling of UITextView between two navigation view

喜夏-厌秋 提交于 2019-12-12 04:04:08
问题 I have view a that has a table cell and a save button. If I touch the table cell, a new navigation view slides in ( view b ). In the view b, I have one UITextView where I type all the context I need save. And of course there is 'back' button on the top left side of the 'view b'. 'view a' has a save button, it wants save content of the textView from 'view b' that I typed in. Saving is done on 'view a' not 'view b' since actually there are other information need to be saved on 'view a' as well.

Dismissing View Controller Doesn't Work While Using Navigation Controller

偶尔善良 提交于 2019-12-11 23:23:30
问题 I have two view controllers. The first one is embedded in a Navigation Controller. On the first view controller there is Bar Button Item which is connected by a segue to the second view controller. The segue is set as Push. Once I go to the second view controller there is a Bar Button Item which is an IBAction and should dismiss the page, but it doesn't. Second View Controller Code: import UIKit class Page2ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() }

Windows Phone app crashes when navigating back from a task

放肆的年华 提交于 2019-12-11 11:11:41
问题 Some pages in my app allow users to click a hyperlink to launch the external browser via a WebBrowserHelper. I'm carefully saving the app state in OnNavigatedFrom and restoring it in OnNavigatedTo, but when the user navigates back from the web browser into my app, the app hangs, then crashes. I've carefully followed the great blog post on the Windows Team Blog, but can also reproduce the bug using the provided code there (just add a WebBrowserTask to one of the button click events on the

ViewController never gets deallocated

孤街醉人 提交于 2019-12-11 11:07:27
问题 In my mind, myViewController should be deallocated around the time that I pop back to the root view controller with the following code, but I never see the deallocation message getting NSLogged. If this should work, then what kind of problem can I look for in the myViewController's class that might cause it to get deallocated when I popToRootViewController? Thanks. The following gets called in my tableView: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *

iPhone: Add button on MPMoviePlayerViewController's navigation bar

回眸只為那壹抹淺笑 提交于 2019-12-11 08:08:21
问题 I am trying to add button on MPMoviePlayerViewController's navigationcontroller.view. I have wrote following so far. It doesn't give any error but button isn't appearing on view! Could anyone please tell me what am I doing wrong? Thanks. MPMoviePlayerViewController *videoController = [[[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL URLWithString:filePath]] autorelease]; UIButton *favButton = [UIButton buttonWithType:UIButtonTypeCustom]; favButton.frame = CGRectMake(280, 25, 30,

UITabBarController in xamarin.ios without using StoryBoard

妖精的绣舞 提交于 2019-12-11 02:28:54
问题 In continue of my question in this post, I want to post a complete question which will be a question lots of xamarin.ios developers. My request is having TabBar in ALL UIViewControllers. So, as I know, there are two ways to realize it. First : appDelegate -> set RootViewController : TabController -> UVC1 in this case, I have NULL NavigationController and I'll have no navigationItem. and in this.NavigationController.PushViewController(new SearchViewController(), true); It makes error that

UINavigation Controller Root View Change

我们两清 提交于 2019-12-10 16:36:36
问题 I recently encountered a small problem with Storyboards. I have a UINavigationController than has a relationship with the MainView RootViewController (This one has all the buttons leading to the rest of my app). However, I tried to change the RootViewController so that I could enable persistent login rather than a UIWebview Login. When I made the new Logon Form ViewController as the Root, the buttons on my MainView simply stop working. I also have set the UINavigationController as the initial

How to customize the color of the navigation bar in qlpreviewcontroller

天大地大妈咪最大 提交于 2019-12-08 16:23:21
问题 Can I customize the color of the navigation bar in the QlPreviewController controller? I have tried following [[UINavigationBar appearanceWhenContainedIn: [QLPreviewController class], nil] setBarTintColor: [UIColor redColor]]; but it does not work. Thanks. 回答1: Yeah, there is a bug with barTintColor on QLPreviewController for iOS 11 if you are showing it via presentViewController: animated: Here's my solution, use setBackgroundImage: with 1x1 image instead of setBarTintColor: [

How to used navigation controller and tab bar controller in appdelegate file

若如初见. 提交于 2019-12-08 06:38:36
问题 I am facing issue of displaying navigation controller and tab bar controller together either one is displayed depending on the position of adding subview in applicationlaunch method. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions: (NSDictionary *)launchOptions { // Override point for customization after application launch. navigationController.navigationBar.barStyle = UIBarStyleBlackOpaque; // Add the view controller's view to the window and display. [self