Guys, I'm working on a child protection app which can block and notify when children trying to use phone while driving. This is the functionalty of my App. My application is running in the backgroud. I'm using location based service to keep it running in background. When user trying to use an app while driving , I want to identify that app… Show more
When I tried to call `requestAlwaysAuthorization` on iOS 13 beta, it's not working as expected. Expected behaviors: The Always allow option should be popped up to users. Actual behaviors: The Allow only while using option is popped up along with Allow once and Don't Allow
Hi all, When I use '[collectionView dequeueReusableCellWithReuseIdentifier:@"UICollectionViewCell" forIndexPath:indexPath]' in fuction: '- (__kindof UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath', I find item with the same indexPath by… Show more
I have multiple UIViewController files (e.g. RootViewController and ValuesViewController) in Xcode 8.2. How do I segue from RootViewController to ValuesViewController?
If the app has got an update after launching the app user will experience a dialog saying "Your app has an Update", After user clicks Ok he/she will be redirect to the app store. My question: After landing to app store if the user denys to update the app and relaunch the app again he/she will be experincing the dialog again and will be blocked… Show more
As JD says, nobody here can tell you in advance what App Review will or won’t do. But what you’re describing is common for some apps like multiplayer games. Pokémon GO does it every update, for example. I don’t know if app review is explicitly allowing it, or if they just don’t see it in their testing. But it’s a data point.
Got my ActionSheet to come up and go away after I select an item, but cannot figure out how to navigate to a new view from the trigger closure. Tried making the button itself in the AS be a NavigationButton but does not seem to like that. Only tutorial I found was TwoStraws and that did not show any action being invoked.
Hey I've written a socket client and have the following problem, when I send a message to my socket server for the first time, it comes on and everything works, but if I send another message (the second message) (for example, the same one ) comes the error [Fatal error: Unexpectedly found nil while implicitly unwrapping an optional value]. I hope… Show more
Is SwiftUI backwards compatible with iOS 12 and below? Or will it be eventually? I still have lots of users using iOS 11 and 10.
That’s something that always drives me crazy about WWDC videos. They almost never even mention the entire concept of backwards compatibility. I’d like to be able to release updates to take advantage of all the shiny new APIs on launch day, but I live in the real world, as I suspect most of us do. I can’t penalize my users just because they have an…
I'm making an app that's in landscape only. I set a stack view's horizontal center to be the same as the safe area's leading, and then I set the multiplier to 2 in order to push the stack view to the right. On devices with notches (such as iPhone Xs or iPhone Xs Max), this constraint works perfectly as I intended. But all the notch-less devices… Show more
Hi, I updated to 10.15beta and started getting this error: ITMS-90111: Invalid Toolchain - Your app was built with a beta version of Xcode or SDK. Apps submitted to the App Store must be built with the GM version of Xcode 9 and the SDK for iOS 11, tvOS 11, watchOS 4, or macOS 10.13 or later. My Xcode is still GM (10.2.1) so not sure what… Show more
A better workaround is to never try and use unsupported beta tools for production builds. Ever. I’ve been in the software business a long time and believe me, having an unstable/unsupported build process always comes back to bite you eventually. If you need to tinker with beta stuff and have just one Mac, install it on a separate drive. Always…
Load more items
I was just going over a piece of code the other day and then ended up compiling and running it. The result outputted on the console surprised me a bit. Here is the code- #import … Show more
There are two TestObject instances created. The first is in main(), and you call the run method on it. That method then creates a second instance and stores a reference in its testObj property. That second instance has its own testObj property which is nil of course, since you don’t call the run() method on the second instance. So when you call…