Post

Replies

Boosts

Views

Activity

Reply to App
I'm making my site Mobile app that just works the same as my site. The work of the app is just that the app will display my app on smartphones If I understand correctly, I think you will not meet Minimum functionality requirement, and thus risk to be rejected. Appstore guidelines states: 4.2 Minimum Functionality Your app should include features, content, and UI that elevate it beyond a repackaged website. If your app is not particularly useful, unique, or “app-like,” it doesn’t belong on the App Store. If your App doesn’t provide some sort of lasting entertainment value or adequate utility, it may not be accepted. Apps that are simply a song or movie should be submitted to the iTunes Store. Apps that are simply a book or game guide should be submitted to the Apple Books Store.
Oct ’21
Reply to Apple pay on foreign sites
the link is not approved by Apple Did you ask for approval ? Why was it refused ? Is there any settings to block showing the button on foreign sites How do you define exactly in "foreign sites". Do you mean foreign country (Out of Russia ?) I may miss something, but if it is not approved, why would it work anywhere ? May be you could test if site url ends with .ru before displaying or enabling the button ?
Oct ’21
Reply to NSScrollview - Pagination effect - Stop animation
For easier reading I pasted code with Paste And Match Style. You observe notification at startOfScroll, not during scroll. Is it intentional or should you replace NSScrollView.willStartLiveScrollNotification with NSScrollView.didLiveScrollNotification import Cocoa class ViewController: NSViewController { let scrollView = NSScrollView(frame: NSRect(x: 300, y: 300, width: 600, height: 200)) @objc func startscroll() { print("Scroll Started") print(NSApp.currentEvent) var val = scrollView.contentView.frame.height var val2 = scrollView.documentView?.frame.height ?? 0; if (scrollView.contentView.bounds.origin.y>0 && scrollView.contentView.bounds.origin.y<=(val2-val)-1 ){ scrollView.contentView.layer?.removeAllAnimations() } } @objc func endscroll() { print("end") print(NSApp.currentEvent ?? 0) var val = scrollView.contentView.frame.height var val2 = scrollView.documentView?.frame.height ?? 0; if (scrollView.contentView.bounds.origin.y>0 && scrollView.contentView.bounds.origin.y<=(val2-val)-1 ){ var offset = scrollView.contentView.bounds.origin.y offset = round(offset / 60) * 60; NSAnimationContext.runAnimationGroup({ context in context.duration = 2 scrollView.contentView.animator().setBoundsOrigin(NSMakePoint(0, offset)) }) { }} } override func viewDidLoad() { super.viewDidLoad() scrollView.translatesAutoresizingMaskIntoConstraints = false scrollView.borderType = .bezelBorder scrollView.backgroundColor = NSColor.gray scrollView.hasVerticalScroller = true scrollView.hasHorizontalScroller = true scrollView.frame.origin.x=300; scrollView.frame.origin.y=300; self.view.addSubview(scrollView) let clipView = NSClipView() scrollView.contentView = clipView clipView.backgroundColor = NSColor.blue // Initial document view let documentView = NSView(frame: NSRect(x: 0, y: 0, width: 1200, height: 300)) documentView.wantsLayer = true scrollView.documentView = documentView documentView.layer?.backgroundColor = NSColor.red.cgColor documentView.layer?.borderWidth = 0 documentView.layer?.borderColor = NSColor.darkGray.cgColor clipView.scaleUnitSquare(to: NSSize(width: 1, height: 1)) clipView.postsBoundsChangedNotifications = true NotificationCenter.default.addObserver( self, selector: #selector(startscroll), name: NSScrollView.willStartLiveScrollNotification, object: scrollView) NotificationCenter.default.addObserver( self, selector: #selector(endscroll), name: NSScrollView.didEndLiveScrollNotification, object: scrollView) // Subview1 let view1 = NSView(frame: NSRect(x: 0, y: 0, width: 1200, height: 60)) view1.translatesAutoresizingMaskIntoConstraints = false view1.wantsLayer = true view1.layer?.backgroundColor = NSColor.windowBackgroundColor.cgColor view1.layer?.borderWidth = 1 view1.layer?.borderColor = NSColor.gray.cgColor documentView.addSubview(view1) let view2 = NSView(frame: NSRect(x: 0, y: 60, width: 1200, height: 60)) view2.translatesAutoresizingMaskIntoConstraints = false view2.wantsLayer = true view2.layer?.backgroundColor = NSColor.green.cgColor view2.layer?.borderWidth = 1 view2.layer?.borderColor = NSColor.gray.cgColor documentView.addSubview(view2) let view3 = NSView(frame: NSRect(x: 0, y: 120, width: 1200, height: 60)) view3.translatesAutoresizingMaskIntoConstraints = false view3.wantsLayer = true view3.layer?.backgroundColor = NSColor.green.cgColor view3.layer?.borderWidth = 1 view3.layer?.borderColor = NSColor.gray.cgColor documentView.addSubview(view3) let view4 = NSView(frame: NSRect(x: 0, y: 180, width: 1200, height: 60)) view4.translatesAutoresizingMaskIntoConstraints = false view4.wantsLayer = true view4.layer?.backgroundColor = NSColor.green.cgColor view4.layer?.borderWidth = 1 view4.layer?.borderColor = NSColor.gray.cgColor documentView.addSubview(view4) let view5 = NSView(frame: NSRect(x: 0, y: 240, width: 1200, height: 60)) view5.translatesAutoresizingMaskIntoConstraints = false view5.wantsLayer = true view5.layer?.backgroundColor = NSColor.green.cgColor view5.layer?.borderWidth = 1 view5.layer?.borderColor = NSColor.gray.cgColor documentView.addSubview(view5) } override func loadView() { self.view = NSView(frame: NSRect(x: 0, y: 0, width: NSScreen.main?.frame.width ?? 100, height: NSScreen.main?.frame.height ?? 100)) } override var representedObject: Any? { didSet { // Update the view, if already loaded. } } }
Topic: UI Frameworks SubTopic: AppKit Tags:
Oct ’21
Reply to Swift reusable cells with corrupted indexPath
I suppose this code is inside     func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { I miss something in your code: you define item but is seems you never use it (at least in the posted code). What is the purpose of:     let i = indexPath.item / numberOfSets     let j = indexPath.item % numberOfSets     let item = j * 5+i Could you show the code where you get the crash ? Could you show the complete code of the class (problem may be elsewhere).
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’21
Reply to After Installing IOS 15 issues
The problem may be on apps that need to be updated. Have you checked on appStore if there is a new release, or did you contact their support ?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to EXC_CRASH (SIGABRT) EXC_CORPSE_NOTIFY
Just posting the crash report may not be enough. Please explain the context, show the code where crash occurs.
Replies
Boosts
Views
Activity
Oct ’21
Reply to SwiftUI iOS app: crashes immediately on startup in AppDelegate in iOS 15
Not sure you crashed in AppDelegate, that's only the point where debugger returns after crash. Did you try a Clean Build Folder ? You should show some code: Complete code of SceneDelegate Complete code of ContentView (the one called in SceneDelegate) info.plist That will help investigate the problem.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Remove Score from Leaderboards
Where do you store the scores ? You have probably 2 options : remove completely the app from the device and reload add the capability in your app to reset a score.
Topic: Graphics & Games SubTopic: GameKit Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to NSScrollview - Pagination effect - Stop animation
Could you show more code, notably where you call scrollstarted() You may use NSView.boundsDidChangeNotification, as described in my older post here below, to be notified of changes, and removeAnimations in the notification handler ) https://developer.apple.com/forums/thread/114195
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Xcode se ha cerrado inesperadamente mientras se estaba utilizando el módulo libMainThreadChecker.dylib.
¿Qué versión es exactamente? ¿Has terminado de instalar Xcode? La causa puede ser que la instalación no se haya completado correctamente. https://developer.apple.com/forums/thread/651985 the cause was xcode was still updating..
Replies
Boosts
Views
Activity
Oct ’21
Reply to App
I'm making my site Mobile app that just works the same as my site. The work of the app is just that the app will display my app on smartphones If I understand correctly, I think you will not meet Minimum functionality requirement, and thus risk to be rejected. Appstore guidelines states: 4.2 Minimum Functionality Your app should include features, content, and UI that elevate it beyond a repackaged website. If your app is not particularly useful, unique, or “app-like,” it doesn’t belong on the App Store. If your App doesn’t provide some sort of lasting entertainment value or adequate utility, it may not be accepted. Apps that are simply a song or movie should be submitted to the iTunes Store. Apps that are simply a book or game guide should be submitted to the Apple Books Store.
Replies
Boosts
Views
Activity
Oct ’21
Reply to Apple pay on foreign sites
the link is not approved by Apple Did you ask for approval ? Why was it refused ? Is there any settings to block showing the button on foreign sites How do you define exactly in "foreign sites". Do you mean foreign country (Out of Russia ?) I may miss something, but if it is not approved, why would it work anywhere ? May be you could test if site url ends with .ru before displaying or enabling the button ?
Replies
Boosts
Views
Activity
Oct ’21
Reply to Prevent recording or sharing of application interfaces in macOS
It is not possible to screenshot from withi an app, but it is possible to screen shot "manually". And nothing will prevent from capturing photo from another device… However, you may look at this : https://stackoverflow.com/questions/46221825/how-to-prevent-users-taking-screenshots-of-app-on-ios
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to NSScrollview - Pagination effect - Stop animation
For easier reading I pasted code with Paste And Match Style. You observe notification at startOfScroll, not during scroll. Is it intentional or should you replace NSScrollView.willStartLiveScrollNotification with NSScrollView.didLiveScrollNotification import Cocoa class ViewController: NSViewController { let scrollView = NSScrollView(frame: NSRect(x: 300, y: 300, width: 600, height: 200)) @objc func startscroll() { print("Scroll Started") print(NSApp.currentEvent) var val = scrollView.contentView.frame.height var val2 = scrollView.documentView?.frame.height ?? 0; if (scrollView.contentView.bounds.origin.y>0 && scrollView.contentView.bounds.origin.y<=(val2-val)-1 ){ scrollView.contentView.layer?.removeAllAnimations() } } @objc func endscroll() { print("end") print(NSApp.currentEvent ?? 0) var val = scrollView.contentView.frame.height var val2 = scrollView.documentView?.frame.height ?? 0; if (scrollView.contentView.bounds.origin.y>0 && scrollView.contentView.bounds.origin.y<=(val2-val)-1 ){ var offset = scrollView.contentView.bounds.origin.y offset = round(offset / 60) * 60; NSAnimationContext.runAnimationGroup({ context in context.duration = 2 scrollView.contentView.animator().setBoundsOrigin(NSMakePoint(0, offset)) }) { }} } override func viewDidLoad() { super.viewDidLoad() scrollView.translatesAutoresizingMaskIntoConstraints = false scrollView.borderType = .bezelBorder scrollView.backgroundColor = NSColor.gray scrollView.hasVerticalScroller = true scrollView.hasHorizontalScroller = true scrollView.frame.origin.x=300; scrollView.frame.origin.y=300; self.view.addSubview(scrollView) let clipView = NSClipView() scrollView.contentView = clipView clipView.backgroundColor = NSColor.blue // Initial document view let documentView = NSView(frame: NSRect(x: 0, y: 0, width: 1200, height: 300)) documentView.wantsLayer = true scrollView.documentView = documentView documentView.layer?.backgroundColor = NSColor.red.cgColor documentView.layer?.borderWidth = 0 documentView.layer?.borderColor = NSColor.darkGray.cgColor clipView.scaleUnitSquare(to: NSSize(width: 1, height: 1)) clipView.postsBoundsChangedNotifications = true NotificationCenter.default.addObserver( self, selector: #selector(startscroll), name: NSScrollView.willStartLiveScrollNotification, object: scrollView) NotificationCenter.default.addObserver( self, selector: #selector(endscroll), name: NSScrollView.didEndLiveScrollNotification, object: scrollView) // Subview1 let view1 = NSView(frame: NSRect(x: 0, y: 0, width: 1200, height: 60)) view1.translatesAutoresizingMaskIntoConstraints = false view1.wantsLayer = true view1.layer?.backgroundColor = NSColor.windowBackgroundColor.cgColor view1.layer?.borderWidth = 1 view1.layer?.borderColor = NSColor.gray.cgColor documentView.addSubview(view1) let view2 = NSView(frame: NSRect(x: 0, y: 60, width: 1200, height: 60)) view2.translatesAutoresizingMaskIntoConstraints = false view2.wantsLayer = true view2.layer?.backgroundColor = NSColor.green.cgColor view2.layer?.borderWidth = 1 view2.layer?.borderColor = NSColor.gray.cgColor documentView.addSubview(view2) let view3 = NSView(frame: NSRect(x: 0, y: 120, width: 1200, height: 60)) view3.translatesAutoresizingMaskIntoConstraints = false view3.wantsLayer = true view3.layer?.backgroundColor = NSColor.green.cgColor view3.layer?.borderWidth = 1 view3.layer?.borderColor = NSColor.gray.cgColor documentView.addSubview(view3) let view4 = NSView(frame: NSRect(x: 0, y: 180, width: 1200, height: 60)) view4.translatesAutoresizingMaskIntoConstraints = false view4.wantsLayer = true view4.layer?.backgroundColor = NSColor.green.cgColor view4.layer?.borderWidth = 1 view4.layer?.borderColor = NSColor.gray.cgColor documentView.addSubview(view4) let view5 = NSView(frame: NSRect(x: 0, y: 240, width: 1200, height: 60)) view5.translatesAutoresizingMaskIntoConstraints = false view5.wantsLayer = true view5.layer?.backgroundColor = NSColor.green.cgColor view5.layer?.borderWidth = 1 view5.layer?.borderColor = NSColor.gray.cgColor documentView.addSubview(view5) } override func loadView() { self.view = NSView(frame: NSRect(x: 0, y: 0, width: NSScreen.main?.frame.width ?? 100, height: NSScreen.main?.frame.height ?? 100)) } override var representedObject: Any? { didSet { // Update the view, if already loaded. } } }
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Swift reusable cells with corrupted indexPath
I suppose this code is inside     func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { I miss something in your code: you define item but is seems you never use it (at least in the posted code). What is the purpose of:     let i = indexPath.item / numberOfSets     let j = indexPath.item % numberOfSets     let item = j * 5+i Could you show the code where you get the crash ? Could you show the complete code of the class (problem may be elsewhere).
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Xcode playground failing on pow() function?
Which version of Xcode ? Which version of iOS ? I tested in Xcode (15) Playground, no problem: I tested in code (simulator iOS 15): no problem either, no crash, correct value 9.0 I tested on an iPad with Swift playground: no problem, correct result.
Replies
Boosts
Views
Activity
Oct ’21
Reply to XCode 13 crashes on my MacOS
Did you ask the question directly to IONIC ? They may have a more recent version that you need for Xcode 13 ?
Replies
Boosts
Views
Activity
Oct ’21
Reply to SwiftUI Image does not display image from existing file
If the image is not saved somewhere and reloaded at start in the Book metaData, it is logical it doesn't show. How did you do this in the other version of your App ?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Accessing Developer Forums on Google Chrome?
I opened https://forums.developer.apple.com/welcome in Chrome without problem. MacOS 11.6 Chrome Version 94.0.4606.71 (Build officiel) (x86_64)
Replies
Boosts
Views
Activity
Oct ’21