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?
Search results for
show when run
112,716 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Everything 's working perfectly before ios 15.4.1, but few days ago, I 've update my iphone to 15.4.1, MPRemoteCommandCenter does not show up any more. It only shows up only when I toggle play pause my AVPlayer while Avplayer playing. Anyone has experience with this?
I just noticed I have the problem of the launch screen not showing as I had before. Instead it shows just black.Here is my last question about this: https://forums.developer.apple.com/thread/77733. I never got a good answer. Anyone know how to fix this?
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 ...).
You might try to hide the preview pane: Editor > Show Editor Only (And use Editor > Canvas when you want the Preview pane to come back.) I don't know if this will stop the preview updating, or if it will continue running and just not show it. But it is something quick you can test.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
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.
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
Hey, its showing me that There was a problem running this page after adding more than 2 layers to my AR project. Please how can I solve this and be able to have more layers? my code:
@DTS Engineer Hi there, I finally figured out what the problem was. After adding the simulator, change Show Run Destination to Always
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Still getting this in May 2025, running simple single-button/show some text test app with SwiftUI. Xcode 16.3.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
I have a storyboard segue from one view controller to another. When I call performSegue on that segue, the performSegue method runs as it should, as the print statement in it prints to the debug window, but the second view controller doesn't show. What should I check in order to fix this?
Xcode will run app on simulator but not on device, any suggestions? I use Enterprise Deployment.
How long did you wait? I have seen some versions of Xcode bounce for 5+ minutes the first time they are run. Does Activity Monitor show processor activity?
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
The problem I am having is on Xcode/product/archive it runs successfully but does not display the Xcode/window/organizer page showing the archive that was just created.
Topic:
App Store Distribution & Marketing
SubTopic:
App Review
Tags:
So I can't create more than 1 program? If there is only one program there it runs perfectly but as soon as i add another another it shows an error.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: