Post

Replies

Boosts

Views

Activity

Reply to On UINavigationBar the leftBarButtonItem and rightBarButtonItem of the UINavigationItem are placed incorrectly on iOS 16
Unfortunately, the two buttons of UIBarButtonItem are also placed incorrectly in the empty test project under iOS 16 if I do everything as in the real project. I add the view of a second UIViewController to the main view and then create the UINavigationBar on top of the second UIViewController's view. It worked fine until iOS 15.5. Unfortunately not with iOS 16. Does anyone know how I can fix the problem? UIEdgeInsets safeAreaInsets = self.view.superview.safeAreaInsets; secondViewController.view.frame = CGRectMake(safeAreaInsets.left, safeAreaInsets.top, self.view.frame.size.width - safeAreaInsets.left - safeAreaInsets.right, self.view.frame.size.height - safeAreaInsets.top - safeAreaInsets.bottom); secondViewController.view.backgroundColor = [UIColor darkGrayColor]; [self.view addSubview:secondViewController.view]; UINavigationBar *navigationBar = [[UINavigationBar alloc] initWithFrame:CGRectMake(0, 0, secondViewController.view.frame.size.width, 44)]; [secondViewController.view addSubview:navigationBar]; UINavigationItem *navigationItem = [[UINavigationItem alloc] init]; navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self action:nil]; navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:nil]; [navigationBar pushNavigationItem:navigationItem animated:NO]; With the code below it looks good even with iOS 16, but I really need the first method as in the code above. UIEdgeInsets safeAreaInsets = self.view.superview.safeAreaInsets; secondViewController.view.backgroundColor = [UIColor whiteColor]; UINavigationBar *navigationBar = [[UINavigationBar alloc] initWithFrame:CGRectMake(0, safeAreaInsets.top, secondViewController.view.frame.size.width, 44)]; [secondViewController.view addSubview:navigationBar]; UINavigationItem *navigationItem = [[UINavigationItem alloc] init]; navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self action:nil]; navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:nil]; [navigationBar pushNavigationItem:navigationItem animated:NO]; secondViewController.modalPresentationStyle = UIModalPresentationFullScreen; [self presentViewController:secondViewController animated:NO completion:nil];
Topic: UI Frameworks SubTopic: UIKit Tags:
Sep ’22
Reply to On UINavigationBar the leftBarButtonItem and rightBarButtonItem of the UINavigationItem are placed incorrectly on iOS 16
I have now made an empty test project where I do nothing else than add the two UIBarButtonItems to the UINavigationBar in the source code and it is displayed correctly under iOS 16. So the problem is not with the iOS 16 but with my source code in a specific project. It's just weird that it shows up correctly on iOS 15.5. Unfortunately I haven't found the cause of the wrong placement of the buttons in my project yet.
Topic: UI Frameworks SubTopic: UIKit Tags:
Sep ’22
Reply to [License Agreement] Can not accept license agreement
We have the same problem now. Was someone able to solve the problem via email with the Apple team? How long did it take? The German support doesn’t understand the issue. Is there a direct email address for US support? We accepted the new agreement on December 14th. Unfortunately, the App Store Connect system did not notice this. Now it is not possible to update the apps.
Dec ’21
Reply to On UINavigationBar the leftBarButtonItem and rightBarButtonItem of the UINavigationItem are placed incorrectly on iOS 16
Unfortunately, the two buttons of UIBarButtonItem are also placed incorrectly in the empty test project under iOS 16 if I do everything as in the real project. I add the view of a second UIViewController to the main view and then create the UINavigationBar on top of the second UIViewController's view. It worked fine until iOS 15.5. Unfortunately not with iOS 16. Does anyone know how I can fix the problem? UIEdgeInsets safeAreaInsets = self.view.superview.safeAreaInsets; secondViewController.view.frame = CGRectMake(safeAreaInsets.left, safeAreaInsets.top, self.view.frame.size.width - safeAreaInsets.left - safeAreaInsets.right, self.view.frame.size.height - safeAreaInsets.top - safeAreaInsets.bottom); secondViewController.view.backgroundColor = [UIColor darkGrayColor]; [self.view addSubview:secondViewController.view]; UINavigationBar *navigationBar = [[UINavigationBar alloc] initWithFrame:CGRectMake(0, 0, secondViewController.view.frame.size.width, 44)]; [secondViewController.view addSubview:navigationBar]; UINavigationItem *navigationItem = [[UINavigationItem alloc] init]; navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self action:nil]; navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:nil]; [navigationBar pushNavigationItem:navigationItem animated:NO]; With the code below it looks good even with iOS 16, but I really need the first method as in the code above. UIEdgeInsets safeAreaInsets = self.view.superview.safeAreaInsets; secondViewController.view.backgroundColor = [UIColor whiteColor]; UINavigationBar *navigationBar = [[UINavigationBar alloc] initWithFrame:CGRectMake(0, safeAreaInsets.top, secondViewController.view.frame.size.width, 44)]; [secondViewController.view addSubview:navigationBar]; UINavigationItem *navigationItem = [[UINavigationItem alloc] init]; navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self action:nil]; navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:nil]; [navigationBar pushNavigationItem:navigationItem animated:NO]; secondViewController.modalPresentationStyle = UIModalPresentationFullScreen; [self presentViewController:secondViewController animated:NO completion:nil];
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to On UINavigationBar the leftBarButtonItem and rightBarButtonItem of the UINavigationItem are placed incorrectly on iOS 16
I have now made an empty test project where I do nothing else than add the two UIBarButtonItems to the UINavigationBar in the source code and it is displayed correctly under iOS 16. So the problem is not with the iOS 16 but with my source code in a specific project. It's just weird that it shows up correctly on iOS 15.5. Unfortunately I haven't found the cause of the wrong placement of the buttons in my project yet.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to How to fix error code 3300 - PHPhotosErrorChangeNotSupported when save photo iOS 15 (swift)
We also have this problem (PHPhotosErrorDomain error 3300) with all our apps since iOS 15. Before that, the pictures were saved in the album for years without any problems. This only happens on some of my users' devices. We could not reproduce the problem on our test devices. Unfortunately, we can't fix this issue.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to [License Agreement] Can not accept license agreement
We have the same problem now. Was someone able to solve the problem via email with the Apple team? How long did it take? The German support doesn’t understand the issue. Is there a direct email address for US support? We accepted the new agreement on December 14th. Unfortunately, the App Store Connect system did not notice this. Now it is not possible to update the apps.
Replies
Boosts
Views
Activity
Dec ’21