Weak Linking in IOS
For case 3 (new class in an existing framework), you do not need to weak link to the framework, but you will need to use NSClassFromString
to get a reference to the Class
in order to create instances of it (and remember to handle the case where it returns nil
on older versions of iOS).
How do I weak link frameworks on Xcode 4?
Go to your project -> Targets -> Build Phases -> Link Binary with Libraries.
Then change the library you want to weak-link from "Required" to "Optional".
Related Topics
iOS Check If Application Has Access to Microphone
How to Create Different User Groups in Firebase
"Apprequests" Dialog Reports Success, Recipients Receive Nothing
Why Is Allocating or Initializing Nsdateformatter Considered "Expensive"
Uitextview Adding New Line Unintentionally
Swift Optional Chaining Doesn't Work in Closure
iOS Timed Background Processing
How Can Split from String to Array by Chunks of Given Size
Hide the Cursor of a Uitextfield
Xcode Error While Validation - "Your Binary Is Not Optimized for iPhone 5"
Create Singleton of a Viewcontroller in Swift 3
Round Top Corners of a Uiview and Add Border
Invalid Image Path - No Image Found at the Path. Cfbundleicons Xcode 5
How to Use Objective-C Code with #Define MACros in Swift
iOS 10, Nsuserdefaults Does Not Work