Post

Replies

Boosts

Views

Activity

How on earth do I get the actual dimensions of a presented modal view on iPad?
This is the stupidest thing that should be so easy. I simply present a view controller using: [self presentViewController:settingsView animated:YES completion:^(){ }]; Then in the code for the view controller being presented, I want to know it's width, which should be stupidly simple using: const int viewWidth = self.view.frame.size.width; HOWEVER, this gives me a value that is the same as the parent view's width, yet on iPad at least this view is visibly smaller than the parent/presenting view (as it is hovering over it with the view visible around the edges behind it). I have tried every stupid thing I can find within the parent view and view controller code that mentions margins and insets and whatnot, but nothing seems to give me the actual stupid value of the stupid presented view's visible dimensions! Any ideas? The iPad is on iPadOS 15.3.1, might try installing a newer version and see if this is some bug in this particular version of the OS.
Topic: UI Frameworks SubTopic: UIKit
4
0
987
Jul ’24
XCode 10 stopped detecting changes in C++ header files
I have a C++ project I've been working on fine in XCode 9, where when I edit a header file it automatically detects which object files need to be recompiled when I go to build/run the program. As of XCode 10.0 (10A255), however, when I make edits to my header files, XCode doesn't detect the changes and doesn't recompile anything when I try to build/run. So I have to clean the entire build folder and rebuild everything any time I make changes to a header file. Anyone else have this issue?
5
0
4.2k
Sep ’22
How on earth do I get the actual dimensions of a presented modal view on iPad?
This is the stupidest thing that should be so easy. I simply present a view controller using: [self presentViewController:settingsView animated:YES completion:^(){ }]; Then in the code for the view controller being presented, I want to know it's width, which should be stupidly simple using: const int viewWidth = self.view.frame.size.width; HOWEVER, this gives me a value that is the same as the parent view's width, yet on iPad at least this view is visibly smaller than the parent/presenting view (as it is hovering over it with the view visible around the edges behind it). I have tried every stupid thing I can find within the parent view and view controller code that mentions margins and insets and whatnot, but nothing seems to give me the actual stupid value of the stupid presented view's visible dimensions! Any ideas? The iPad is on iPadOS 15.3.1, might try installing a newer version and see if this is some bug in this particular version of the OS.
Topic: UI Frameworks SubTopic: UIKit
Replies
4
Boosts
0
Views
987
Activity
Jul ’24
Is there no way to support upside down orientation on newer iPhones?
I want my app to be able to work upside down on an iphone so the mic can point up when it's set on a stand. But it seems that there's no longer support for this on home-button-less iPhones. Am I missing something?
Topic: UI Frameworks SubTopic: General
Replies
1
Boosts
0
Views
536
Activity
Jun ’24
XCode 10 stopped detecting changes in C++ header files
I have a C++ project I've been working on fine in XCode 9, where when I edit a header file it automatically detects which object files need to be recompiled when I go to build/run the program. As of XCode 10.0 (10A255), however, when I make edits to my header files, XCode doesn't detect the changes and doesn't recompile anything when I try to build/run. So I have to clean the entire build folder and rebuild everything any time I make changes to a header file. Anyone else have this issue?
Replies
5
Boosts
0
Views
4.2k
Activity
Sep ’22