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

Fetching specific JSON data with iOS / Make a query
UITableView requires double tap - but not first time
Why do I need an .ipa file?
The “Guided Access is Enabled" message appears with every HTML form submission in iOS 8
Ios swift haneke EXC_BAD_ACCESS
iOS Simulator not showing iPhone Frame
Set UITableViewCell label to be generated from HTML string
How to present ViewController when tab is selected on UITabBarController?
iOS8 UILabel dynamic width with constraints
Saving and retrieving custom objects in Core Data
Parse update PFUser Class String
spacing between UITableViewCells
iOS Custom Build Configurations and Frameworks
which iOS time function should I use so it works seamlessly with android
UICollectionView within UITableView. How to tell tableview cell to change height when collection view gets taller?
SKMaps Skobbler Implementation error XMLParser.m:14:9: 'SDKTools/SKTMaps/SKTMapsObject.h' file not found

Categories

HOME
math
jsp
svg
serial-port
servlets
android-activity
apache-pig
sql-server-2012
jsonschema
bootstrap-selectpicker
localforage
antlr
classloader
socrata
eps
h2o
eloqua
union
cloudrail
stackexchange-api
gitlab-ci-runner
smartcard
nxbre
accelerated-mobile-page
spark-graphx
google-distancematrix-api
c-strings
wso2cep
yii1.x
x-sendfile
android-arrayadapter
ruamel.yaml
debugview
ose
jformattedtextfield
hamcrest
bem
jpype
linear
mdanalysis
keyboard-maestro
dependency-management
domdocument
kony
gpt
findall
django-errors
cakephp-2.3
android-chips
ubuntu-15.04
webclient-download
android-number-picker
webpack-hmr
screen-capture
ane
ssha
materialdrawer
spymemcached
android-gpuimageview
chunk-templates
nbug
viennacl
spatial-index
react-rails
scalariform
google-swiffy
crowdflower
iife
min3d
servlet-listeners
culture
knockout-mvc
team-explorer-everywhere
nhunspell
grunt-contrib-copy
youtrack-api
colormatrix
libavcodec
appstore-sandbox
transport-stream
semantic-markup
rcu
mainwindow
flexpaper
square-cube
cloud-hosting
gigaspaces
android-actionbar-compat
onmouseout
springboard
bubble-popup
retain
codi
coolstorage
jquery-1.3.2
queryanalyzer
net-ssh
resharper-4.5
help-authoring
crc-cards
large-teams

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