Posts

Post not yet marked as solved
1 Replies
127 Views
Usually, when I display a UITableView (UITableViewStyleGrouped) somewhere, there's a nice strip of gray padding at the top, above the first cell in the first section. But, when displayed in a popover on an iPad, the same UITableView appears with the first cell aligned to the top edge, i.e., you can't see any gray padding. If you drag the UITableView down with your finger, you can see that the padding exists, but as soon as you let go, the UITableView snaps back so that the top cell is aligned with the top edge. Curiously, if the top section has a header string, the UITableView behaves as you would expect. Any thoughts are appreciated!
Posted
by motrek.
Last updated
.
Post not yet marked as solved
0 Replies
313 Views
I'm trying to add iCloud Drive support to one of my apps, but it looks pretty tough using Apple's APIs. I notice that on my Mac, I can access my iCloud Drive storage just like any other directory, via ~Library/Mobile Documents/com~apple~CloudDocs. Is there an Apple-supported way to just access iCloud Drive (via iOS) using standard C or C++ file IO functions? Thanks in advance!
Posted
by motrek.
Last updated
.
Post not yet marked as solved
2 Replies
241 Views
I'm working on an iPad app. The app displays a main menu via a UIModalPresentationPopover. The menu contains various text fields. The popover's source rect is located towards the bottom right corner, such that the popover's little arrow points to the right. (This is important for some reason.) When the keyboard becomes visible to edit some text, the popover does a curious animation as it slides up to get out of the way of the keyboard. It instantly resizes itself to infinitesimally small when it starts sliding up, and then expands back to its original size as it's sliding up. If I change the source rect of the popover such that the little popover arrow points down instead of to the side, it does not do this contract-then-expand animation. The app did not do this when it was built for iOS 11 (or 12?) but is now doing it when built for iOS 13. I just checked by running my old source code and it does seem to be new-for-iOS-13 weirdness. Does anybody have an explanation for this, or any idea for how to get it to stop doing this? Thanks in advance!
Posted
by motrek.
Last updated
.
Post marked as solved
3 Replies
459 Views
If I call [AVAudioPlayerNode scheduleFile] with atTime = nil, my sound plays very nicely but only after all other sounds have finished playing. This is inappropriate for the project I'm working on, I need sound effects to be able to play simultaneously. So now I'm calling scheduleFile to play a sound with atTime = mach.absolute.time(). (Underscores instead of dots.) The problem is, the beginnings of the sounds are often clipped, because presumably it takes a fraction of a second to copy the sound to the output buffer. So I guess I could add an arbitrary delay to when I want the sound to play, but that's very hacky. Is there a way to tell scheduleFile, "play the entire sound as soon as you're ready to play it, even if other sounds are playing simultaneously." Thanks in advance!
Posted
by motrek.
Last updated
.
Post marked as solved
1 Replies
1k Views
I make an app that's a single-player game and I'm adding the ability to play online matches.I'm using Game Center for authentication, but my own server/service for actual play.Still, I would like to respect the Game Center Content Restriction setting that disallows multiplayer play.But I don't know how to query that setting, programmatically. Does anybody have any insight? Much appreciated!Also, are there any settings I should query to disallow short messages between users (potentially strangers)?
Posted
by motrek.
Last updated
.
Post marked as solved
1 Replies
477 Views
Sorry if this is the wrong place to ask this question, it probably is, but I couldn't find the right place.I'm adding online gaming to one of my apps, which, up until now, has been single-player-only.The app uses Game Center for authentication, but my own server for actual play.The problem is, I would still like to respect the Content Restriction setting that disallows multiplayer play via Game Center.But I have no idea how to determine, programatically, whether or not this Content Restriction setting is turned on. I have Googled for probably half an hour to no avail. Any help is much appreciated. Thank you in advance!P.S. I am also adding the ability for players to send each other messages. I understand that many parents would prefer to have such a feature disabled for their children. I have added a setting within the app to disable messaging, but if there's a system-wide setting for this sort of stuff, I'd much prefer to support that. Any insight?
Posted
by motrek.
Last updated
.
Post not yet marked as solved
1 Replies
1.1k Views
Hi all,My app has a UIToolbar at the bottom of the screen. (I put it there programatically with Obj-C, I don't use IB.)On the iPhone X, the toolbar is partially covered with the "swipe up handle."So I want to make the toolbar taller and move the buttons to the top so it looks like the toolbars in Apple's apps when running on the iPhone X.I can make the toolbar taller no problem, but the buttons stay in the middle of the bar, which just looks weird.Does anybody know how you're supposed to handle this?Sorry if this question has been asked a million times. I've spent the last half hour trying to Google it and have made no progress.Thanks in advance for any help!!
Posted
by motrek.
Last updated
.