uinavigationbar

Updating navigation bar after a change using UIAppearance

和自甴很熟 提交于 2019-12-22 04:45:15
问题 I'm currently customising the navigation bar background image of my iOS app using the UIAppearance proxy. There is a button for switching between two different modes which triggers a notification. This notification will change the background to a different image using again the proxy. My problem is that this change becomes visible only when I go to a different controller and I come back to it. I'm not able to force the update of the navigation bar within the controller. I've tried this in my

Add items to menu dynamically in asp.net website

萝らか妹 提交于 2019-12-22 04:43:11
问题 <asp:Menu ID="mnu" runat="server" PathSeparator="," CssClass="menu" DynamicMenuItemStyle-CssClass="menu"> <Items> <asp:MenuItem Text="home" NavigateUrl="~/Default.aspx" /> <asp:MenuItem Text="Aboutus" NavigateUrl="#"/> <asp:MenuItem Text="Support" NavigateUrl="#" /> </Items> </asp:Menu> I have this menu in master page , When the user logs into the website, based on the user role I want to add items to the menu from the server side. How can I do that. Admin(menu to add --> Organisation,

Add items to menu dynamically in asp.net website

左心房为你撑大大i 提交于 2019-12-22 04:43:05
问题 <asp:Menu ID="mnu" runat="server" PathSeparator="," CssClass="menu" DynamicMenuItemStyle-CssClass="menu"> <Items> <asp:MenuItem Text="home" NavigateUrl="~/Default.aspx" /> <asp:MenuItem Text="Aboutus" NavigateUrl="#"/> <asp:MenuItem Text="Support" NavigateUrl="#" /> </Items> </asp:Menu> I have this menu in master page , When the user logs into the website, based on the user role I want to add items to the menu from the server side. How can I do that. Admin(menu to add --> Organisation,

Navigation bar disappears when typing in UISearchController text field

家住魔仙堡 提交于 2019-12-22 04:32:49
问题 I'm trying to figure out why my whole navigation bar disappears when I start typing in the UISearchController.searchBar It loads properly and animates properly, but I lose the active NavBar when I start typing. Here's the code to load the searchController from viewDidLoad: UITableViewController *searchResultsController = [[UITableViewController alloc] initWithStyle:UITableViewStylePlain]; searchResultsController.tableView.dataSource = self; searchResultsController.tableView.delegate = self;

How to change the text of a BarButtonItem on the NavigationBar?

好久不见. 提交于 2019-12-22 03:54:47
问题 I am trying to create a list of items that can be edited. Something like this: To that end, I added a NavigationBar to the top of the view, then added 2 Bar Button Items in XCode designer. I set the identifier for the button on the left to Add, for the button on the right to Edit. When I click the Edit, I want to change the text to Done. I've tried various ways, e.g. btnEdit.Title = "Done" , but it simply doesn't take. I've seen several blog posts recommending .SetTitle, but UIButtonBarItem

UINavigationBar without UINavigationController

自古美人都是妖i 提交于 2019-12-22 03:51:26
问题 I want to have a UINavigationBar in the top of my app, just like in the phone app for example, but I don't want to use it with a UINavigationController , that is, I want to use it as a "standalone" object. The view controller that will have the UINavigationBar has its view in a .xib file. I tried to drag an instance of UINavigationBar from the Object Library and it works fine, but the status bar of the app is still white while the UINavigationBar is gray. I want the status bar to have the

Setting UI Navigation Bar to part translucent in Swift xCode

时光毁灭记忆、已成空白 提交于 2019-12-21 20:13:32
问题 I want to make my navigation bar have a tinge of a colour but not go completely translucent. Here is the code I have and their results: UINavigationBar.appearance().setBackgroundImage(UIImage(), forBarMetrics: UIBarMetrics.Default) UINavigationBar.appearance().shadowImage = UIImage() UINavigationBar.appearance().translucent = true UINavigationBar.appearance().barTintColor = UIColor(red: 0, green: 107/255, blue: 178/255, alpha: 0.5) But if I turn the 'translucent' to false i.e use this code:

Adding buttons to the titleview of NavigationBar without having to repeat code

倖福魔咒の 提交于 2019-12-21 20:05:53
问题 To give some background, I am making a UINavigationControlled-based blog type app (I suppose it most closely resembles the iPhone facebook app). Regardless of the view that is currently active, the NavigationBar shows some buttons in its title area, such as Friend Requests and Activity Notifications. In much the same was as the facebook app, clicking these buttons will create a popup view. Currently, I am doing things in a way that I feel is incredibly inefficient. For every view that is

Strange overlapping bug between navigation and status bars when rotating fullscreen videos in iPad

强颜欢笑 提交于 2019-12-21 19:59:03
问题 I'm implementing a video player inside my application and strange things happen when rotating the iPad when the video player is working in full screen. My test case is kind of easy: 1.- I set orientation to Vertical 2.- I start video playing (non full screen) 3.- I set full screen 4.- I rotate the iPad while in fullscreen and set it to horizontal 5.- I go back to "non full screen" 6.- Navigation and status bar become overlapped overlapped in a very silly way. Look: 7.- Then I rotate the iPad

iOS: Monotouch bindings for Appearance on Bar Style missing?

北慕城南 提交于 2019-12-21 18:58:04
问题 I'm trying to convert this to Monotouch C#: [[UINavigationBar appearance] setBarStyle:UIBarStyleBlackOpaque]; But on the Appearance object there doesn't seem to be a Bar Style. Is there a work around or alternative access point? 回答1: This property is not decorated with UI_APPEARANCE_SELECTOR in the Objective-C header files. The initial MonoTouch Appearance work was based on that documentation (but we added more cases over time). However the way Apple implement it's appearance support allows a