Text
How to get IDFA?
@import AdSupport;
if ([[ASIdentifierManager sharedManager] isAdvertisingTrackingEnabled]) { NSUUID *IDFA = [[ASIdentifierManager sharedManager] advertisingIdentifier]; NSLog(@"IDFA: %@", [IDFA UUIDString]); }
0 notes
Text
The New iOS10 Lock Screen
I installed the new iOS10 yesterday to my iPad and at first glance, it looks more or less the same. Then I locked the iPad and I saw one of the major changes - the lock screen was different. The clock was not in the centre of the screen but rather on the left side. And then the familiar message “slide to unlock” was nowhere to be found. After a second or two, a new message appeared - “press home to unlock”. Wait, what? I ignored it and tried to unlock it the old-fashioned way. It didn’t work. Instead, I was greeted by a new notification screen, most of it empty. I swiped back and then swiped to the other direction only to find the new home for the camera. Neat. But the iPad was still locked so I swiped right again to exit the camera screen... which didn’t work. I had to press the home button to close it.
Okay, so back where I started. As I was wondering what was the new way to unlock the iPad the hint reappeared “press home to unlock”. What if I didn’t know which button (or switch) was “home”? Guess it’s more or less intuitive since there is only one button on the iPad anyway. I pressed it and - voila - the passcode prompt appeared. I will just have to live with it.
P.S. As I was writing this it came to me that most of the current devices have Touch ID and people are quite accustomed to using it as a preferred way to unlock them. So I am guessing removing the “slide to unlock” option is not that big of a deal after all.
0 notes
Link
When my Internet Accounts suddenly disappeared I managed to recover them using this guide. And more particularly - DEFCON IV: Restoring preferences.
0 notes
Link
I didn't believe this line will fix my crash, but guess what - It did.
let bugfix = ""
0 notes
Link
I knew most of it but the handy run script at the end is pure gold! I quickly pasted it into all my apps’ settings. Thanks guys, you rock!
0 notes
Photo
#6: Debugging Tips
Exception Breakpoint
This one’s pretty obvious but make sure you always add an exception breakpoint to every project you create. Xcode will pause anytime an exception is thrown and let you poke around.
Conditional Breakpoints
Break exactly when you want to.
Evaluate an Expression
With expression or e you can even modify values in your app, and then continue running.
Property Breakpoints
Here’s one that is not as widely known as it should be:
If you set a breakpoint on the line of code containing a property definition, your application will pause anytime that property’s value is changing and display a stack trace of the function calls that ultimately caused the change.
12 notes
·
View notes
Link
0 notes
Link
0 notes
Link
I am guilty of overlooking some of these... I am taking notes.
0 notes
Text
The file “Info.plist” couldn’t be opened because there is no such file.
After spending insane amount of time trying to debug this dreaded error and trying every suggestion out there - from deleting the Info.plist file and replacing it with an old copy, through copying over some other project's Info.plist file, to the boring deleting and reinstalling Xcode and my Storyboard file - I stumbled on the solution by accident.
Look closely and tell me if you can spot the difference between these two screenshots.
Why on Earth would you allow the user to edit this field by hand and not validate it after? And how is this error message supposed to guide you to solve the issue?
Anyway, now I can finally move on with my life and begin experimenting with iOS9. Staring happily at this:
0 notes
Link
0 notes
Link
0 notes
Quote
We just went through this process of canceling almost every recurring meeting that we had to see which ones we really needed. We probably do need some of the ones we canceled, and they’ll come back — but we’ll wait until we actually need them again.
Stewart Butterfield
0 notes