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

How can I change the image in the detail view to access the master view
Can I use swift 1.2 with iOS 9? [closed]
Why same nsmutablearray gives me valid value and a null on different functions used
Capture location in all states app
Does prefix works correctly in Xcode 7 beta 6?
Ios Push notification : Null would like to send you notifications
Programming Transition Loses Navigation Bar
Go back to previous controller from class swift
Performance drop when switching between applications on iOS 9
Parse and Swift: How use advance targeting push to specific devices without users?
Dynamically adding multiline label in a view
How to bind with struct in ReactiveCocoa with Objective-C
iOS default keychain for unprivileged user used to start Tomcat and Jenkins
Changing background image for multiple platforms iOS
iOS How to update location of assets in photo editing extension?
How to link to Update page for our app

Categories

HOME
uwp
apache-spark
opencv
mongodb
simulated-annealing
orbeon
linear-programming
weight
open-source
sony
google-analytics-api
player-swift
range
telnet
uwsgi
development-environment
editor
yii2-advanced-app
avr
jgit
lazy-loading
nxbre
dotnetbar
code-analysis
django-autocomplete-light
dsc
sax
selenium-edgedriver
epicorerp
padding
toolbar
charts.js
apache-commons-httpclient
panel-data
azure-api-apps
dlopen
ose
spring-websocket
gosublime
server-sent-events
data-science
solid-principles
runge-kutta
tibco-ems
protobuf-3
extjs4
logicblox
ase
keyboard-maestro
notimplementedexception
untagged
glumpy
netbeans-7
breach-attack
zenity
geneticsharp
wxhaskell
vistadb
mailcore2
surroundscm
vb4android
post-increment
facebook-audience-network
codeigniter-upload
app-engine-ndb
jongo
android-popupwindow
python-dragonfly
pyenchant
nbug
gem5
easynetq
generalization
zim-database
imake
cvs2git
boxapiv2
esx
citymaps
sendto
lwuit-list
short
mouseenter
hobbitmon
mydbr
yourls
colormatrix
parsekit
bochs
external-dependencies
repeating
programmers-notepad
geometry-surface
jflow
java-ee-5
wescheme
eject
clean-urls
livevalidation
junitperf
process.start
datatemplate
retain
replay
custom-tag
gumstix
non-relational-database
crc-cards
virtual-server
versant-vod

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