• Stars
    star
    159
  • Rank 235,916 (Top 5 %)
  • Language
    Objective-C
  • Created almost 13 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Example implementation of AirPlay secondary display for iOS (iPhone/iPad) apps

##AirPlayDemo: Example of AirPlay secondary display for iOS apps

NOTE: An updated example using Storyboards with Airplay is available: https://github.com/quellish/AirPlayStoryboards

===================================================

###Synopsis

AirPlayDemo is a simple example showing how to use Apple's AirPlay as a secondary or accessory display for your iOS application (like Real Racing 2 HD). When run from a supported device, this will display the number of each screen, on each screen. The iOS device will show "1", and the AirPlay display and/or a display using the External Display connector will show a "2".

This app should be enough to give you something to start with.

###The Details

Apple's developer documentation for implementing this functionality does not really make it clear that using an AirPlay connected device as a second display depends on the user enabling display mirroring on their device. When mirroring is enabled, you will get the UIScreenDidConnectNotification if you have registered for it. Users can enable and disable mirroring while your application is running, so you should handle it.

###AirPlay documentation:

Apple : Enrich Your App for AirPlay

UIScreen Class Reference

To start mirroring:

Setting up and troubleshooting AirPlay Mirroring

More Repositories

1

XcodeNewBuildSystem

Swift
63
star
2

AirPlayStoryboards

Simple demonstration of using Storyboards with external (airplay) displays for iPhone/iPad
Objective-C
34
star
3

Facebook-iOS-Internal-Headers

Headers generated by reverse engineering the Facebook iOS binary
Objective-C
29
star
4

Weakness

Demonstrates using a dynamic framework with iOS 7
Objective-C
29
star
5

UnitTestHTTPServer

Embed an HTTP server in your iOS unit tests.
Objective-C
22
star
6

ClassClustersExamples

Example of two ways to construct a class cluster in Objective-C for Mac, iPhone, iPad, etc.
Objective-C
22
star
7

PublicKeyPinningExample

Example of implementing public key SSL pinning with NSURLConnection
Objective-C
13
star
8

ASLogger

An (almost) drop in replacement for `NSLog()` that logs using the Apple System Log (ASL)
C
12
star
9

TestFlightLogger

Custom logger for the Cocoa Lumberjack logging API that interfaces to TestFlightApp.com's remote logging.
Objective-C
12
star
10

XcodeConcurrentSwiftBuilds

6
star
11

NibInStoryboard

Shows how to use nib-based views with storyboards. This makes it easy to isolate and reuse custom views.
Objective-C
6
star
12

ModelObjectDemo

Examples of model object implementations for iOS
Objective-C
6
star
13

Swift-NSOperation-Test-Case

XCTestCase to verify the correct behavior of any NSOperation
Swift
5
star
14

UIKitCluster

Demonstrates class cluster for UIKit classes, loading a Xib from a storyboard
Objective-C
4
star
15

XCTestCoreData

XCTest Core Data Template
Objective-C
4
star
16

SimpleOffline

Demonstrates handling of "offline" network mode/reachability following Apple best practices.
Objective-C
3
star
17

LinkedInForMobileDevelopers

A (short) guide to LinkedIn success for mobile developers
3
star
18

MPMediaItem_DZCloud

Category for MPMediaItem that provides a method for determining if an item is local, or on iCloud/iTunes Match.
Objective-C
3
star
19

FoundationRaise

Provides pre formatted Objective-C exceptions for abstract method invocation, unimplemented functions and methods.
Objective-C
3
star
20

Offliner

Demonstrates offline caching for an iOS application.
Objective-C
2
star
21

KVCValidationExample

Shows how to implement Key-Value Coding validation on iOS.
Objective-C
2
star
22

DZDataDrivenSenTestCase

Data-driven development with OCUnit. Write fewer tests, use more data!
Objective-C
2
star
23

NSOperationTestCaseTemplate

An Xcode template for tests that verify the correct behavior of any NSOperation subclass in Objective-C or Swift.
2
star
24

SimpleKVOArray

Simple example of key value observation of a mutable array property.
Objective-C
2
star
25

QueuedCoreData

Simple iOS CoreData demo demonstrating correct use of queue confinement and parent-child contexts.
Objective-C
2
star
26

NSPredicateDictionaryRepresentation

Informal protocol for decomposing (some) predicates into dictionaries. This makes it easy to use NSPredicates as parameters to REST web services.
Objective-C
2
star
27

AEX

Perl script that digests IETF RFC text and extracts ABNF grammar. Originally from http://wayback.archive.org/web/*/http://rtg.ietf.org/~fenner/ietf/aex
Perl
1
star
28

memory_pressure_ios

iOS port of the macOS memory_pressure tool
C
1
star
29

OperationalKeyValue

Demonstrates key value observation of an NSOperation subclass using synthesized accessors for `executing` and `finished`
Objective-C
1
star
30

UIApplication-DZUIApplication

Extensions to UIApplication to get Info.plist information, with (useful) caching.
Objective-C
1
star
31

NSURLRequest_BasicAuthentication

Basic Authentication for NSURLRequest and NSURLConnection
Objective-C
1
star
32

NSAtomicStoreTemplate

Xcode template for creating NSAtomicStore subclasses.
Objective-C
1
star