Post

Replies

Boosts

Views

Created

overriding UINavigationItem of a UIViewController broken for iOS16.
On overriding UINavigationItem of a UIViewController, the left and right UIBarButtonItems don't appear in iOS16 . The same code works for iOS16 and below. In the snippet below if VC is presented the left bar items don't show up. class VC:UIViewController {   override var navigationItem: UINavigationItem {     get {       return NavItem()     } set {     }   } } class NavItem: UINavigationItem {   override var leftBarButtonItems: [UIBarButtonItem]? {     get {       let view2 = UIView.init(frame: CGRect.init(x: 3, y: 3, width: 40, height: 40))       view2.backgroundColor = .gray       return [UIBarButtonItem.init(customView: view2)]     } set {             }   }       override var titleView: UIView? {     get {       let view2 = UIView.init(frame: CGRect.init(x: 3, y: 3, width: 40, height: 40))       view2.backgroundColor = .systemRed       return view2     } set {             }   } }
3
0
1.1k
Oct ’22
Catch crash occurences and store to user defaults
Is there a way to catch the crashes from both swift and obj-c without using any 3rd party libraries? I want a way to note that my app has crashed, no stack trace needed just want some count of crashes stored to user defaults. I saw NSSetUncaughtExceptionHandler being used but it is only catching obj-c related errors. eg. force unwrapping nil is not caught here. I want a universal way of catching the crashes. also want to know if this can affect the crash reporting by 3rd party libraries
2
0
1.2k
Aug ’23
Is there a way to find the error code of network errors from their localizedDescriptions?
There are several network errors being logged. Only the description is being logged now. Is there some way of finding out the exact reason for these errors. Eg. I have some logs that state: A data connection is not currently allowed. I am unable to find the code for this and don't understand the reason for the above issue.
2
0
700
Oct ’23
overriding UINavigationItem of a UIViewController broken for iOS16.
On overriding UINavigationItem of a UIViewController, the left and right UIBarButtonItems don't appear in iOS16 . The same code works for iOS16 and below. In the snippet below if VC is presented the left bar items don't show up. class VC:UIViewController {   override var navigationItem: UINavigationItem {     get {       return NavItem()     } set {     }   } } class NavItem: UINavigationItem {   override var leftBarButtonItems: [UIBarButtonItem]? {     get {       let view2 = UIView.init(frame: CGRect.init(x: 3, y: 3, width: 40, height: 40))       view2.backgroundColor = .gray       return [UIBarButtonItem.init(customView: view2)]     } set {             }   }       override var titleView: UIView? {     get {       let view2 = UIView.init(frame: CGRect.init(x: 3, y: 3, width: 40, height: 40))       view2.backgroundColor = .systemRed       return view2     } set {             }   } }
Replies
3
Boosts
0
Views
1.1k
Activity
Oct ’22
App size has increased 2X after disabling bitcode in XCode14
XCode14 has disabled bitcode and Apple says they won't accept bitcode enabled apps. Disabling bitcode increases the size of our app by 2X. This can only help reduce the app size by a few Mb. Has anyone faced this issue and been able to reduce their app size without bitcode enabled?
Replies
1
Boosts
1
Views
957
Activity
Oct ’22
Does App store accept iOS app submissions with bitcode enabled?
Has anyone already submitted Xcode 14 builds and got the approval for their apps with bitcode enabled?
Replies
2
Boosts
0
Views
1.1k
Activity
Nov ’22
Catch crash occurences and store to user defaults
Is there a way to catch the crashes from both swift and obj-c without using any 3rd party libraries? I want a way to note that my app has crashed, no stack trace needed just want some count of crashes stored to user defaults. I saw NSSetUncaughtExceptionHandler being used but it is only catching obj-c related errors. eg. force unwrapping nil is not caught here. I want a universal way of catching the crashes. also want to know if this can affect the crash reporting by 3rd party libraries
Replies
2
Boosts
0
Views
1.2k
Activity
Aug ’23
Is there a way to find the error code of network errors from their localizedDescriptions?
There are several network errors being logged. Only the description is being logged now. Is there some way of finding out the exact reason for these errors. Eg. I have some logs that state: A data connection is not currently allowed. I am unable to find the code for this and don't understand the reason for the above issue.
Replies
2
Boosts
0
Views
700
Activity
Oct ’23
App size shown in AppStore connect is 20 Mb less than TestFlight
The App size in AppStore connect is shown as 32.5 Mb whereas in TestFlight it is showing 72.2 Mb. This is happening after we recently upgraded the react native version of our application from 0.61 to 0.72. Want to know why this is happening? On AppStore Connect On TestFlight
Replies
0
Boosts
0
Views
713
Activity
Jan ’24