How to import AppDelegate.h from another Framework in Xcode
I have a framework called "MyFramework.xcodeproj" that is added to my main project. Within this framework, I'm working on a file that needs a reference to my AppDelegate.h file. It isn't able to locate it, and when I try to add the file from "Build Phases" in "Compile Sources" it isn't able to find it there either. How can I get the reference to this file?
Your framework should ideally be separate from any application delegate logic. However, if you do need access to it, you can simply cast the shared application delegate to AppDelegate. (AppDelegate *)[[UIApplication sharedApplication] delegate]; Just copy AppDelegate's #interface and put it somewhere visible in your framework. AppDelegate.m does not need to be there.
Crashlytics forceCrash not working
Swift 3: Ambiguous reference to member 'subscript' while using UberRides SDK
IOS Background Gradients - Storyboard
RxSwift not working with UIButton
Open URL within app in cocos2D version3
Using autolayout self-sizing cell in groupTableView,after reloadData,if I scroll upward,tableview will jump
Problems With Error Casting In Swift
Displaying fetched data in different section than store
iOS Location Update
iOS Obj-C custom number text field
Why I can only fetch one object from an array Core Data Swift 3 [duplicate]
Swift 3 Eureka Forms change button row font color
GCDAsyncSocket with Client Authentication
UIImage resizing via an extension
How can one download the data in cloudkit?
Tap Gesture on tableViewCell Swift