Search results for

show when run

112,716 results found

Post

Replies

Boosts

Views

Activity

UIBarButtonItem: show 'menu' programmatically
Hi, I have a UIBarButtonItem that I create with a UIMenu, and it's added to the navigation bar: self.rightButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd menu: [self createMenuForAddItem]]; self.navigationItem.rightBarButtonItems = @[self.rightButton]; The menu shows fine when a user clicks on the bar button. Now I want to also show this menu programmatically, for e.g if the user opens the app for the 5th time, the menu from the bar button item shows automatically, without the user having to explicitly press the button. How do I achieve this?
Topic: UI Frameworks SubTopic: UIKit Tags:
1
0
833
May ’24
Showing enum options
I have for example this code:var myAlert: UIAlertController = UIAlertController(title: Title text , message: message, preferredStyle: UIAlertControllerStyle. )When I press the dot after UIAlertControllerStyle I would expect the options of this enumerator type. Instead I get a lot of other suggestions (also). Is there a quick way to only show the available options of this enum type?NB: I have experience with Visual Studio. I'm quite new to Xcode (yet ...).
4
0
457
Aug ’16
Xcode 13.2.1 failed showing Preview
After upgrading Xcode to 13.2.1 on iMac (macOS Monterey 12.1), I cannot see Preview (iPhone 11/iOS 15.2) - even for a new project. Restarting Xcode or rebooting iMac does not help. Preview always show the below error: “Cannot preview in this file - Timed out waiting for connection to DTServiceHub after 15.0 seconds.” (PS: Running on simulator works.) Please help.
2
0
1k
Dec ’21
TextField using numberPad shows incorrectly shows autofill for one time code
If I show a textfield in my app and set nothing else on it but the following, The keyboard will show an autofill suggestion from a password manager for a one time code. textField.keyboardType = .numberPad In this case, the text field is for typing in a count, so iOS suggesting to autofill a one time code is incorrect. Setting textField.textContentType to nil has no affect on the behaviour. Prerequisites to reproduce an app with an associated domain an entry in a password manager with a one time code for the domain a textfield with keyboardType set to numberPad
Topic: UI Frameworks SubTopic: UIKit Tags:
2
0
665
Jan ’25