ios


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.

Related Links

share extension in ios 8 with objective c
Implementing pixel-perfect background images in different orientations
iAP buy button with price tier text
Segmentation fault OR Stacktrace when using UIView with message forwarding feature of Objective-C
How to get the String Value in JSON
Add TapGestureRecogniser to UITextView
Navigation title not working properly
Chaning height of UIView
Getting same records from UITableView on Detail Button click in iOS
Interaction pop view controller from top to bottom swipe
Undeclared identifier error in UICollectionView
precompiler conditional compiling two cases
What does “Expression was too complex to be solved in reasonable time…” mean, and how can I fix it? [duplicate]
Update TableViewCell with Asynchronous data
Swift delegates - Newbie 3 ViewControllers
BLE - didDiscoverServices is never called

Categories

HOME
sbt
bootstrap-4
identityserver4
rtmp
order
apacheds
garbage-collection
linear-programming
localforage
amazon-kinesis
webdriver-io
documentation
drag
cross-compiling
eloqua
session-cookies
sparkpost
facebook-opengraph
aar
ssrs-tablix
api-design
cmusphinx
gyroscope
git-bash
powershell-v2.0
centroid
core-location
addthis
memorystream
editorconfig
reformatting
true-type-fonts
solarwindslem
gecko
google-shared-contacts
dashboard-designer
doctrine-odm
google-domain-api
consistency
backwards-compatibility
zfs
default-browser
ewsjavaapi
okular
attributerouting
reactivex
maven-versions-plugin
view-source
zbar
lcov
jcuda
manifoldcf
jeditorpane
vistadb
tfs2008
ispconfig
ckcontainer
telecommunication
formatter
target-platform
mutation
storage-duration
screen-capture
occam-pi
skrollr
win32com
flexigrid
xirr
spinach
selectsinglenode
error-log
structured-programming
sslv3
diagonal
llvm-gcc
newsql
horizontalscrollview
sendto
grunt-contrib-copy
declspec
lightstreamer
array-address
xidel
modx-evolution
bochs
arbtt
impdp
northwind
dependency-walker
jmdns
vote
qbwc
code-structure
sticky-footer
tipsy
cellid
expression-encoder-sdk
duplicate-data
retain
treetop
regexbuddy

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App