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

What video resolution and format is most suitable for ios apps?
invite/install iOS app with custom action
Unable to capture camera in ios 6plus using appcelerator
ld: file not found: /Pods/GoogleUtilities/Libraries/libGTM_NSData+zlib.a fix issue
Make UITableViewCell actions overlap content
GCM fail in IOS
RerfreshControl background does not cover
How do I access an instance of a class in Swift
Pathfinding With SKNode's Not Working
Jenkins build using fastlane string parameter with whitespace
NSURLSession and NSURLProtocol issue on iOS 8
No device logs output after attaching iPhone to process in Xcode
Custom UITableViewCell not appearing
CGImageCreateWithImageInRect() returning nil
Status Bar is pushing down view content, only when app is launched with In-call status bar activated
Can't Compile Crypto++ Library for IOS

Categories

HOME
odoo-10
ssl
lsf
pyqt5
openshift-origin
graylog2
apache-pig
outlook
cql3
android-sms
freebsd
superfish
light-inject
oracle-ucm
higher-order-functions
session-cookies
signature
jscrollpane
coreos
condor
jgit
spring-boot-admin
graphcool
gitlab-ci-runner
swig
opencms
netlify
nested-set-model
netcdf
naturallyspeaking
mathdotnet
rrd
nested-loops
dapper-fastcrud
toastr
lync
groove
ose
blockui
increment
ecmascript-4
angular-xeditable
protobuf-3
h5py
dxgi
couchbase-lite
pseudo-element
docker-swarm-mode
requirements-management
ios-app-group
canopen
waf
setwindowshookex
business-logic
facebook-audience-network
ellipsis
ng-annotate
android-number-picker
menustrip
ios-frameworks
vb6-migration
uploadify
sliding
highslide
asp.net-webpages
strace
java-gstreamer
sqlj
ane
materialdrawer
clipping
biojava
viennacl
cbc-mode
horizontalscrollview
mpj-express
catalina.out
private-methods
cpp-netlib
nine-patch
youtrack-api
yourls
sqlprofiler
modx-evolution
prudentia
rte
xhtml-transitional
adlds
dynamic-usercontrols
sender
locomotivejs
haar-wavelet
eject
headless-browser
calloc
msxsl
undeclared-identifier
expression-encoder-sdk
cellphone
nsinvocation
android-screen
facebook-authentication
bubble-popup
directoryentry
etrade-api
machine.config
rails-3.1
automapping
run-length-encoding
stsadm

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