Skip to content

Instantly share code, notes, and snippets.

@hujunfeng
hujunfeng / udid-faq.md
Last active January 24, 2024 14:15
UDID, identifierForVendor and advertisingIdentifier FAQ

What's the difference between UUID, GUID and UDID?

  • UUID (Universally Unique Identifier): A sequence of 128 bits that can guarantee uniqueness across space and time, defined by [RFC 4122][rfc4122].

  • GUID (Globally Unique Identifier): Microsoft's implementation of the UUID specification; often used interchangeably with UUID.

  • UDID _(Unique Device Identifier)): A sequence of 40 hexadecimal characters that uniquely identify an iOS device (the device's Social Security Number, if you will). This value can be retrieved through iTunes, or found using UIDevice -uniqueIdentifier. Derived from hardware details like MAC address.

Is UDID deprecated?

@hujunfeng
hujunfeng / Root.plist
Last active September 30, 2022 20:40
Add version in Settings.bundle for iOS apps
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PreferenceSpecifiers</key>
<array>
<dict>
<key>DefaultValue</key>
<string></string>
<key>Key</key>
@hujunfeng
hujunfeng / wwdc2020_sessions.txt
Last active June 9, 2021 01:24
The list of WWDC 2020 sessions
101 Keynote
102 Platforms State of the Union
10004 Expanding automation with the App Store Connect API
10005 What's new in assessment
10006 Introducing Car Keys
10008 Optimize the Core Image pipeline for your video app
10009 Edit and play back HDR video with AVFoundation
10010 Export HDR media in your app with AVFoundation
10011 Author fragmented MPEG-4 content with AVAssetWriter
10012 Discover ray tracing with Metal
@hujunfeng
hujunfeng / wwdc2018_sessions_list.txt
Created June 12, 2018 01:48
WWDC 2018 Sessions
101 WWDC 2018 Keynote
102 Platforms State of the Union
103 Apple Design Awards
201 Creating Apps for a Global Audience
202 What's New in Cocoa Touch
203 I Have This Idea For An App...
204 Automatic Strong Passwords and Security Code AutoFill
205 Advances in Research and Care Frameworks
206 What's New in watchOS
207 Strategies for Securing Web Content
@hujunfeng
hujunfeng / wwdc14-sessions-titles
Last active May 8, 2021 06:18
WWDC 2014 sessions titles list
102 Platforms State of the Union
103 Apple Design Awards
201 Advanced Topics in Internationalization
202 What's New in Cocoa Touch
203 Introducing HealthKit
204 What's New in Cocoa
205 Creating Extensions for iOS and OS X, Part 1
206 Introducing the Modern WebKit API
207 Accessibility on OS X
@hujunfeng
hujunfeng / wwdc15-session-titles
Created June 13, 2015 04:56
WWDC 2015 Session Titles
101: Keynote
102: Platforms State of the Union
103: Apple Design Awards
104: What's New in Xcode
105: Introducing WatchKit for watchOS 2
106: What's New in Swift
107: What's New in Cocoa Touch
108: Building Watch Apps
201: iOS Accessibility
202: What's New in Cocoa
@hujunfeng
hujunfeng / wwdc16_sessions_list
Last active May 8, 2021 06:17
WWDC16 Sessions List
101 - Keynote
102 - Platforms State of the Union
103 - Apple Design Awards
201 - Internationalization Best Practices
202 - What's New in Accessibility
203 - What's New in Cocoa
204 - iMessage Apps and Stickers, Part 1
205 - What's New in Cocoa Touch
206 - What's New in tvOS
207 - What's New in Foundation for Swift
101 - WWDC 2017 Keynote
102 - Platforms State of the Union
201 - What's New in Cocoa Touch
202 - Advances in TVMLKit
203 - Introducing Drag and Drop
204 - Updating Your App for iOS 11
205 - What's New in watchOS
206 - Introducing Password AutoFill for Apps
207 - What's New in Cocoa
208 - Natural Language Processing and your Apps
@hujunfeng
hujunfeng / wwdc2019_sessions.txt
Created June 24, 2019 01:51
The list of WWDC 2019 sessions
101 Keynote
103 Platforms State of the Union
104 Apple Design Awards
202 Using Core Data With CloudKit
203 Introducing Desktop-class Browsing on iPad
204 Introducing SwiftUI: Building Your First App
205 Introducing iPad Apps for Mac
206 Introducing SF Symbols
207 Introducing SiriKit Media Intents
208 Creating Independent Watch Apps
@hujunfeng
hujunfeng / ios7statusbar.md
Last active March 20, 2019 14:20
About iOS 7 Status Bar Style

UIStatusBarStyle in iOS 7

  • The status bar in iOS 7 is transparent, the view behind it shows through.

  • The style of the status bar refers to the appearances of its content. In iOS 7, the status bar content is either dark (UIStatusBarStyleDefault) or light (UIStatusBarStyleLightContent). Both UIStatusBarStyleBlackTranslucent and UIStatusBarStyleBlackOpaque are deprecated in iOS 7.0. Use UIStatusBarStyleLightContent instead.

How to change UIStatusBarStyle

  • If below the status bar is a navigation bar, the status bar style will be adjusted to match the navigation bar style (UINavigationBar.barStyle):