Search results for

show when run

112,706 results found

Post

Replies

Boosts

Views

Activity

Show notification window from daemon
Hello,I have a background daemon which is launched by launchd at system startup. I need to show a notification window to reports some event occationally. My snippet is as follows.CFStringRef message = CFStringCreateWithCString(NULL, filePath, kCFStringEncodingUTF8); CFUserNotificationDisplayNotice( 3.0f, kCFUserNotificationStopAlertLevel | kCFUserNotificationNoDefaultButtonFlag, NULL, NULL, NULL, CFSTR(alert), message, NULL); CFRelease(message);The CFUserNotificationDisplayNotice returns 0, but no window shows up.I cannot find much information about how to use this API.Could anybody show me the correct way to show some UI from a daemon? Thanks!
1
0
734
Feb ’20
How to show SwiftUI PhotosPicker programatically
Hi I would like to show the PhotosPicker programatically the same way we can do with sheet(isPresented: Binding) and fullScreenCover(isPresented: Binding), i.e. I would like: photosPicker(isPresented: Binding, selectedItem: Binding). This would allow me to have multiple buttons that show the picker and would make all my code that shows sheets consistent, thanks for reading.
2
0
2.8k
Sep ’22
Reply to Xcode, #include stdio.h
Command-line tools are executed in terminal.Indeed. Or you can choose Product > Run in Xcode to run it from within Xcode, in which case your see the output in the debug area (if it’s not visible, choose View > Debug Area > Show Debug Area to show it).Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic: Programming Languages SubTopic: General Tags:
Oct ’15
LaunchScreen doesn't show on simulator in Xcode 12.4
I just upgraded to Xcode 12.4, created a project using the app template, without SwiftUI, I chose Storyboard instead. I placed a small image on the LaunchScreen.storyboard, and an NSLog output in my ViewController. When I run the app on the simulator, the LaunchScreen does not, show, and I do get my NSLog output. So I know the app is running. When run this bare app on my physical iPhone X...I do get the launch screen. So I opened a game app I started under Xcode 11.x. It will show the LaunchScreen on both simulator and my device. I've checked that Launch screen interface file base name is set to LaunchScreen in Info.plist. It's also set under App Icons and Launch Images. Is this some bug?
5
0
2.7k
Feb ’21
Show a UIMenu on double-tap?
Is there a way to programmatically show a UIMenu on iOS on a double-tap event? I have an app that's been around for over a decade, so there are some UX patterns that I'm reluctant to mess around with. There is a view in my app with the following properties: Tapping the view once focuses it and brings it to the front Double-tapping it shows a view controller as a sheet, with several operations you can perform on that object Instead of the sheet, I'd like to move to context menus - they look better, and they're more familiar for users. Obviously, adding a context menu for long-press is straightforward (just use UIContextMenuInteraction). But there does not seem to be a way to show the context menu on double-tap. I've discovered that you can use UIButton with showsMenuAsPrimaryAction to show the menu on single-tap, but that doesn't quite work for me. My users expect a single tap to do something else (focus the view) and will be annoyed if single taps start showing men
Topic: UI Frameworks SubTopic: UIKit Tags:
1
0
990
Jun ’24
UITextField wrongly shows multiple lines
Xcode Version 11.0 beta 2 (11M337n)iOS Simulator Version 11.0 (SimulatorApp-895.6 SimulatorKit-553.12 CoreSimulator-643.11)or iOS 13 Devices- Create a UITextField in storyBoard, with all default settings- add autolayout constraint to that textField, such as width 100pt, height 60 pt.- input a long text, make sure text width will be bigger than textField width constraint- then run with iOS 13 simulator or iOS 13 devices.Expect: textField shows text in one line, and with ... at the endActually: textField shows multiple linesDemo project:https://github.com/zhangjirui/IOS13UITextFieldTest
1
0
2.0k
Jun ’19
i have installed macOS sierra developer preview on my macbook Air. Now my macbook air is Crash .It is showing me Internal error : An uncaught exception was raised.Choose "continue" to continue running in an inconsistent state
I am an ios Developer and i have installed macOS sierra developer preview on my macbook Air. Now my macbook air is Crash .It is showing me Internal error : An uncaught exception was raised.Choose continue to continue running in an inconsistent state
5
0
1.9k
Aug ’16
homekit not showing on apple tv
With the latest beta of TVos the homekit option doesn't show under icloud. Hence I can't connect any homekit devices using the Apple TV 4 as a homekit hub.If I setup my ipad running ios 10.1 beta 4 I can see and use the ipad as a homekit hub.Any idea on how to get the Apple TV 4 as a homekit hub?
0
0
661
Oct ’16
Showing deallocations in an interval?
Is there any way, in Instruments, to figure out what allocations were deallocated in an interval? I'd like to highlight a section of the allocations timeline, and then see only the blocks that were deallocated during that interval (for bonus points, show only blocks that were allocated before that interval, but deallocated during that interval).I don't see an obvious way to do this. Thanks!
0
0
381
Jun ’17
Will not run
Hi i am very new to coding... code x will not even run the text which is already typed in by default also if i use print command. it says on the top it is running my playground but it never stops loading. can someone help?
1
0
571
Apr ’18
TestFlight App Shows Empty White Screen
When I install and open my React Native iOS app on my iPhone device using the TestFlight app, it shows an empty white screen. But, it works fine on my XCode Simulator and my iPhone device when run through XCode on both debug or release modes. What could be the reason for getting an empty white screen when running my app on TestFlight?
0
0
535
Sep ’24