Search results for

“show when run”

115,100 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
754
Feb ’20
Reply to 15A226f Won't Update
This worked for me. After running the terminal command, the App Store immediately started showing updated. App Store went through the process of updating to Beta 3, three times in a row, until Beta 4 showed up and updated successfully.
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’15
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
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
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.9k
Sep ’22
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
669
Oct ’16
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
1k
Jun ’24
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
389
Jun ’17
Do i have to show the price of an in app purchase?
Hello, I am having some troubles on showing localized price. Can i just show a Subscribe button to users? Is it infringing Apple guidelines? Thanks in advance
Replies
1
Boosts
0
Views
506
Activity
Jul ’20
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!
Replies
1
Boosts
0
Views
754
Activity
Feb ’20
Reply to 15A226f Won't Update
This worked for me. After running the terminal command, the App Store immediately started showing updated. App Store went through the process of updating to Beta 3, three times in a row, until Beta 4 showed up and updated successfully.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jul ’15
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
Replies
1
Boosts
0
Views
2.0k
Activity
Jun ’19
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?
Replies
5
Boosts
0
Views
2.7k
Activity
Feb ’21
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.
Replies
2
Boosts
0
Views
2.9k
Activity
Sep ’22
Reply to Sticker Pack not working on device
Just figured this out. On the device you're running the build on, make sure you have pressed Trust this Device under General -> Device Management -> [Your App]. Then re-run your build via Xcode and your stickers will show up.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’16
Reply to Xcode setting ENABLE_BITCODE
For me, If I try to run this on a simulator project builds and compiles fine but for devices, it shows this error. IDK what's causing this for physical devices!!
Replies
Boosts
Views
Activity
Feb ’23
Reply to Shortcut Donations Not Working
Can you run the sample code project to see if the donations from that sample app show up for you? If so, compare your implementation here with that of the sample code project.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’21
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?
Replies
0
Boosts
0
Views
669
Activity
Oct ’16
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:
Replies
1
Boosts
0
Views
1k
Activity
Jun ’24
App not showing in Window>Organizer
I just completed updating a legacy app to run on newer IOSs using Xcode. I want to submit my updated app, but when I run archive the build is successful, but my app only shows in the other items section in the organizer. Please help a legacy programmer/school teacher learn new tricks.
Replies
1
Boosts
0
Views
2.8k
Activity
Jul ’20
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!
Replies
0
Boosts
0
Views
389
Activity
Jun ’17
Shows memory leak when open a new controller with UITabBar
I'm using x-code 7.1. But when I run this on x-code7.0 it does not show this error. Only show this error on x-code 7.1. How do I solve this memory leak issue. Thank you !This Memory leak shows only when I navigate to a view controller with a UITabBar.
Replies
2
Boosts
0
Views
928
Activity
Nov ’15
command "dsconfigad -show" not returning any output
Whenever I am trying to run the command dsconfigad -show, it is not returning anything. But I can see that I am connected to a domain in enterprise connect. My Mac version is Monterey(version 12.2). Can anyone solve this issue. Thanks in advance.
Replies
0
Boosts
0
Views
977
Activity
Feb ’22