├── Demo1_iOS9网络适配_改用更安全的HTTPS
├── 微博@iOS程序犭袁.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcuserdata
│ │ │ ├── admin.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ │ │ ├── apple.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ │ │ └── chenyilong.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ └── xcuserdata
│ │ ├── admin.xcuserdatad
│ │ ├── xcdebugger
│ │ │ └── Breakpoints_v2.xcbkptlist
│ │ └── xcschemes
│ │ │ ├── B01-tableView.xcscheme
│ │ │ └── xcschememanagement.plist
│ │ ├── apple.xcuserdatad
│ │ └── xcschemes
│ │ │ ├── B01-tableView.xcscheme
│ │ │ └── xcschememanagement.plist
│ │ └── chenyilong.xcuserdatad
│ │ ├── xcdebugger
│ │ └── Breakpoints_v2.xcbkptlist
│ │ └── xcschemes
│ │ ├── @iOS程序犭袁.xcscheme
│ │ └── xcschememanagement.plist
└── 微博@iOS程序犭袁
│ ├── AppDelegate.h
│ ├── AppDelegate.m
│ ├── Base.lproj
│ ├── LaunchScreen.xib
│ └── Main.storyboard
│ ├── Classes
│ ├── Controller
│ │ ├── ViewController.h
│ │ └── ViewController.m
│ ├── Model
│ │ ├── CYLNews.h
│ │ └── CYLNews.m
│ ├── Tool
│ │ └── Lib
│ │ │ └── SDWebImage
│ │ │ ├── MKAnnotationView+WebCache.h
│ │ │ ├── MKAnnotationView+WebCache.m
│ │ │ ├── NSData+ImageContentType.h
│ │ │ ├── NSData+ImageContentType.m
│ │ │ ├── SDImageCache.h
│ │ │ ├── SDImageCache.m
│ │ │ ├── SDWebImageCompat.h
│ │ │ ├── SDWebImageCompat.m
│ │ │ ├── SDWebImageDecoder.h
│ │ │ ├── SDWebImageDecoder.m
│ │ │ ├── SDWebImageDownloader.h
│ │ │ ├── SDWebImageDownloader.m
│ │ │ ├── SDWebImageDownloaderOperation.h
│ │ │ ├── SDWebImageDownloaderOperation.m
│ │ │ ├── SDWebImageManager.h
│ │ │ ├── SDWebImageManager.m
│ │ │ ├── SDWebImageOperation.h
│ │ │ ├── SDWebImagePrefetcher.h
│ │ │ ├── SDWebImagePrefetcher.m
│ │ │ ├── UIButton+WebCache.h
│ │ │ ├── UIButton+WebCache.m
│ │ │ ├── UIImage+GIF.h
│ │ │ ├── UIImage+GIF.m
│ │ │ ├── UIImage+MultiFormat.h
│ │ │ ├── UIImage+MultiFormat.m
│ │ │ ├── UIImage+WebP.h
│ │ │ ├── UIImage+WebP.m
│ │ │ ├── UIImageView+HighlightedWebCache.h
│ │ │ ├── UIImageView+HighlightedWebCache.m
│ │ │ ├── UIImageView+WebCache.h
│ │ │ ├── UIImageView+WebCache.m
│ │ │ ├── UIView+WebCacheOperation.h
│ │ │ └── UIView+WebCacheOperation.m
│ └── View
│ │ ├── CYLNewsCell.h
│ │ └── CYLNewsCell.m
│ ├── Images.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-40.png
│ │ ├── Icon-40@2x.png
│ │ ├── Icon-40@3x.png
│ │ ├── Icon-60@2x.png
│ │ ├── Icon-60@3x.png
│ │ ├── Icon-72.png
│ │ ├── Icon-72@2x.png
│ │ ├── Icon-76.png
│ │ ├── Icon-76@2x.png
│ │ ├── Icon-Small-50.png
│ │ ├── Icon-Small-50@2x.png
│ │ ├── Icon-Small.png
│ │ ├── Icon-Small@2x.png
│ │ ├── Icon-Small@3x.png
│ │ ├── Icon.png
│ │ └── Icon@2x.png
│ ├── Contents.json
│ └── LaunchImage.launchimage
│ │ ├── Contents.json
│ │ ├── Default-568h@2x.png
│ │ ├── Default.png
│ │ ├── Default@2x.png
│ │ ├── Default~ipad.png
│ │ ├── Default~ipad@2x.png
│ │ ├── Default~ipad~landscape.png
│ │ ├── Default~ipad~landscape@2x.png
│ │ ├── Default~ipad~landscape~nostatusbar.png
│ │ ├── Default~ipad~landscape~nostatusbar@2x.png
│ │ ├── Default~ipad~nostatusbar.png
│ │ ├── Default~ipad~nostatusbar@2x.png
│ │ ├── iPhone6-Plus-landscape@3x.png
│ │ ├── iPhone6-Plus-portrait@3x.png
│ │ └── iPhone6-portrait@2x.png
│ ├── Info.plist
│ ├── http问题.gif
│ └── main.m
├── Demo2_iOS9新特性_更灵活的后台定位
├── 微博@iOS程序犭袁.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcuserdata
│ │ │ ├── admin.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ │ │ ├── apple.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ │ │ └── chenyilong.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ └── xcuserdata
│ │ ├── admin.xcuserdatad
│ │ ├── xcdebugger
│ │ │ └── Breakpoints_v2.xcbkptlist
│ │ └── xcschemes
│ │ │ ├── B01-tableView.xcscheme
│ │ │ └── xcschememanagement.plist
│ │ ├── apple.xcuserdatad
│ │ └── xcschemes
│ │ │ ├── B01-tableView.xcscheme
│ │ │ └── xcschememanagement.plist
│ │ └── chenyilong.xcuserdatad
│ │ ├── xcdebugger
│ │ └── Breakpoints_v2.xcbkptlist
│ │ └── xcschemes
│ │ ├── @iOS程序犭袁.xcscheme
│ │ └── xcschememanagement.plist
└── 微博@iOS程序犭袁
│ ├── AppDelegate.h
│ ├── AppDelegate.m
│ ├── Classes
│ ├── Controller
│ │ ├── ViewController.h
│ │ └── ViewController.m
│ └── Tool
│ │ └── Lib
│ │ ├── WGS84TOGCJ02.h
│ │ └── WGS84TOGCJ02.m
│ ├── Images.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-40.png
│ │ ├── Icon-40@2x.png
│ │ ├── Icon-40@3x.png
│ │ ├── Icon-60@2x.png
│ │ ├── Icon-60@3x.png
│ │ ├── Icon-72.png
│ │ ├── Icon-72@2x.png
│ │ ├── Icon-76.png
│ │ ├── Icon-76@2x.png
│ │ ├── Icon-Small-50.png
│ │ ├── Icon-Small-50@2x.png
│ │ ├── Icon-Small.png
│ │ ├── Icon-Small@2x.png
│ │ ├── Icon-Small@3x.png
│ │ ├── Icon.png
│ │ └── Icon@2x.png
│ ├── Contents.json
│ └── LaunchImage.launchimage
│ │ ├── Contents.json
│ │ ├── Default-568h@2x.png
│ │ ├── Default.png
│ │ ├── Default@2x.png
│ │ ├── Default~ipad.png
│ │ ├── Default~ipad@2x.png
│ │ ├── Default~ipad~landscape.png
│ │ ├── Default~ipad~landscape@2x.png
│ │ ├── Default~ipad~landscape~nostatusbar.png
│ │ ├── Default~ipad~landscape~nostatusbar@2x.png
│ │ ├── Default~ipad~nostatusbar.png
│ │ ├── Default~ipad~nostatusbar@2x.png
│ │ ├── iPhone6-Plus-landscape@3x.png
│ │ ├── iPhone6-Plus-portrait@3x.png
│ │ └── iPhone6-portrait@2x.png
│ ├── Info.plist
│ └── main.m
├── Demo3_iOS9URLScheme适配_引入白名单概念
├── LICENSE
├── LSApplicationQueriesSchemes.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ ├── xcshareddata
│ │ │ └── LSApplicationQueriesSchemes.xccheckout
│ │ └── xcuserdata
│ │ │ └── chenyilong.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ └── xcuserdata
│ │ └── chenyilong.xcuserdatad
│ │ └── xcschemes
│ │ ├── testA.xcscheme
│ │ ├── testB.xcscheme
│ │ └── xcschememanagement.plist
├── README.md
├── testA
│ ├── Base.lproj
│ │ └── TestAMain.storyboard
│ ├── TestAAppDelegate.h
│ ├── TestAAppDelegate.m
│ ├── TestAAssets.xcassets
│ │ ├── AppIcon.appiconset
│ │ │ ├── Contents.json
│ │ │ ├── Icon-40.png
│ │ │ ├── Icon-40@2x.png
│ │ │ ├── Icon-40@3x.png
│ │ │ ├── Icon-60@2x.png
│ │ │ ├── Icon-60@3x.png
│ │ │ ├── Icon-72.png
│ │ │ ├── Icon-72@2x.png
│ │ │ ├── Icon-76.png
│ │ │ ├── Icon-76@2x.png
│ │ │ ├── Icon-Small-50.png
│ │ │ ├── Icon-Small-50@2x.png
│ │ │ ├── Icon-Small.png
│ │ │ ├── Icon-Small@2x.png
│ │ │ ├── Icon-Small@3x.png
│ │ │ ├── Icon.png
│ │ │ └── Icon@2x.png
│ │ ├── Contents.json
│ │ └── LaunchImage.launchimage
│ │ │ ├── Contents.json
│ │ │ ├── Default-568h@2x.png
│ │ │ ├── Default.png
│ │ │ ├── Default@2x.png
│ │ │ ├── Default~ipad.png
│ │ │ ├── Default~ipad@2x.png
│ │ │ ├── Default~ipad~landscape.png
│ │ │ ├── Default~ipad~landscape@2x.png
│ │ │ ├── Default~ipad~landscape~nostatusbar.png
│ │ │ ├── Default~ipad~landscape~nostatusbar@2x.png
│ │ │ ├── Default~ipad~nostatusbar.png
│ │ │ ├── Default~ipad~nostatusbar@2x.png
│ │ │ ├── iPhone6-Plus-landscape@3x.png
│ │ │ ├── iPhone6-Plus-portrait@3x.png
│ │ │ └── iPhone6-portrait@2x.png
│ ├── TestAInfo.plist
│ ├── TestAViewController.h
│ ├── TestAViewController.m
│ ├── mainTestA.m
│ └── testAAppIcons.sketch
└── testB
│ ├── Base.lproj
│ └── TestBMain.storyboard
│ ├── TestBAppDelegate.h
│ ├── TestBAppDelegate.m
│ ├── TestBAssets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-40.png
│ │ ├── Icon-40@2x.png
│ │ ├── Icon-40@3x.png
│ │ ├── Icon-60@2x.png
│ │ ├── Icon-60@3x.png
│ │ ├── Icon-72.png
│ │ ├── Icon-72@2x.png
│ │ ├── Icon-76.png
│ │ ├── Icon-76@2x.png
│ │ ├── Icon-Small-50.png
│ │ ├── Icon-Small-50@2x.png
│ │ ├── Icon-Small.png
│ │ ├── Icon-Small@2x.png
│ │ ├── Icon-Small@3x.png
│ │ ├── Icon.png
│ │ └── Icon@2x.png
│ └── LaunchImage.launchimage
│ │ ├── Contents.json
│ │ ├── Default-568h@2x.png
│ │ ├── Default.png
│ │ ├── Default@2x.png
│ │ ├── Default~ipad.png
│ │ ├── Default~ipad@2x.png
│ │ ├── Default~ipad~landscape.png
│ │ ├── Default~ipad~landscape@2x.png
│ │ ├── Default~ipad~landscape~nostatusbar.png
│ │ ├── Default~ipad~landscape~nostatusbar@2x.png
│ │ ├── Default~ipad~nostatusbar.png
│ │ ├── Default~ipad~nostatusbar@2x.png
│ │ ├── iPhone6-Plus-landscape@3x.png
│ │ ├── iPhone6-Plus-portrait@3x.png
│ │ └── iPhone6-portrait@2x.png
│ ├── TestBInfo.plist
│ ├── TestBViewController.h
│ ├── TestBViewController.m
│ ├── mainTestB.m
│ └── testBAppIcons.sketch
├── Demo4_navigationController状态栏样式新的设置方法
├── 微博@iOS程序犭袁.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcuserdata
│ │ │ ├── admin.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ │ │ ├── apple.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ │ │ └── chenyilong.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ └── xcuserdata
│ │ ├── admin.xcuserdatad
│ │ ├── xcdebugger
│ │ │ └── Breakpoints_v2.xcbkptlist
│ │ └── xcschemes
│ │ │ ├── B01-tableView.xcscheme
│ │ │ └── xcschememanagement.plist
│ │ ├── apple.xcuserdatad
│ │ └── xcschemes
│ │ │ ├── B01-tableView.xcscheme
│ │ │ └── xcschememanagement.plist
│ │ └── chenyilong.xcuserdatad
│ │ ├── xcdebugger
│ │ └── Breakpoints_v2.xcbkptlist
│ │ └── xcschemes
│ │ ├── @iOS程序犭袁.xcscheme
│ │ └── xcschememanagement.plist
└── 微博@iOS程序犭袁
│ ├── AppDelegate.h
│ ├── AppDelegate.m
│ ├── Base.lproj
│ └── LaunchScreen.xib
│ ├── Classes
│ └── Controller
│ │ ├── UINavigationController+StatusBarStyle.h
│ │ ├── UINavigationController+StatusBarStyle.m
│ │ ├── ViewController.h
│ │ └── ViewController.m
│ ├── Images.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-40.png
│ │ ├── Icon-40@2x.png
│ │ ├── Icon-40@3x.png
│ │ ├── Icon-60@2x.png
│ │ ├── Icon-60@3x.png
│ │ ├── Icon-72.png
│ │ ├── Icon-72@2x.png
│ │ ├── Icon-76.png
│ │ ├── Icon-76@2x.png
│ │ ├── Icon-Small-50.png
│ │ ├── Icon-Small-50@2x.png
│ │ ├── Icon-Small.png
│ │ ├── Icon-Small@2x.png
│ │ ├── Icon-Small@3x.png
│ │ ├── Icon.png
│ │ └── Icon@2x.png
│ ├── Contents.json
│ └── LaunchImage.launchimage
│ │ ├── Contents.json
│ │ ├── Default-568h@2x.png
│ │ ├── Default.png
│ │ ├── Default@2x.png
│ │ ├── Default~ipad.png
│ │ ├── Default~ipad@2x.png
│ │ ├── Default~ipad~landscape.png
│ │ ├── Default~ipad~landscape@2x.png
│ │ ├── Default~ipad~landscape~nostatusbar.png
│ │ ├── Default~ipad~landscape~nostatusbar@2x.png
│ │ ├── Default~ipad~nostatusbar.png
│ │ ├── Default~ipad~nostatusbar@2x.png
│ │ ├── iPhone6-Plus-landscape@3x.png
│ │ ├── iPhone6-Plus-portrait@3x.png
│ │ └── iPhone6-portrait@2x.png
│ ├── Info.plist
│ └── main.m
├── Demo5_CoreSpotlightSearch
└── CYLCoreSpotlightSearchDemo
│ ├── CYLCoreSpotlightSearchDemo.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcuserdata
│ │ │ └── chenyilong.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ └── xcuserdata
│ │ └── chenyilong.xcuserdatad
│ │ └── xcschemes
│ │ ├── CYLCoreSpotlightSearchDemo.xcscheme
│ │ └── xcschememanagement.plist
│ └── CYLCoreSpotlightSearchDemo
│ ├── AppDelegate.h
│ ├── AppDelegate.m
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-40.png
│ │ ├── Icon-40@2x.png
│ │ ├── Icon-40@3x.png
│ │ ├── Icon-60@2x.png
│ │ ├── Icon-60@3x.png
│ │ ├── Icon-72.png
│ │ ├── Icon-72@2x.png
│ │ ├── Icon-76.png
│ │ ├── Icon-76@2x.png
│ │ ├── Icon-Small-50.png
│ │ ├── Icon-Small-50@2x.png
│ │ ├── Icon-Small.png
│ │ ├── Icon-Small@2x.png
│ │ ├── Icon-Small@3x.png
│ │ ├── Icon.png
│ │ └── Icon@2x.png
│ ├── Contents.json
│ └── LaunchImage.launchimage
│ │ ├── Contents.json
│ │ ├── Default-568h@2x.png
│ │ ├── Default.png
│ │ ├── Default@2x.png
│ │ ├── Default~ipad.png
│ │ ├── Default~ipad@2x.png
│ │ ├── Default~ipad~landscape.png
│ │ ├── Default~ipad~landscape@2x.png
│ │ ├── Default~ipad~landscape~nostatusbar.png
│ │ ├── Default~ipad~landscape~nostatusbar@2x.png
│ │ ├── Default~ipad~nostatusbar.png
│ │ ├── Default~ipad~nostatusbar@2x.png
│ │ ├── iPhone6-Plus-landscape@3x.png
│ │ ├── iPhone6-Plus-portrait@3x.png
│ │ └── iPhone6-portrait@2x.png
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Info.plist
│ ├── Resources
│ ├── Plist
│ │ └── data.plist
│ └── images
│ │ ├── 1.png
│ │ ├── 10.png
│ │ ├── 11.png
│ │ ├── 12.png
│ │ ├── 13.png
│ │ ├── 14.png
│ │ ├── 15.png
│ │ ├── 16.png
│ │ ├── 2.png
│ │ ├── 3.png
│ │ ├── 4.png
│ │ ├── 5.png
│ │ ├── 6.png
│ │ ├── 7.png
│ │ ├── 8.png
│ │ └── 9.png
│ ├── ViewController.h
│ ├── ViewController.m
│ └── main.m
├── Demo6_CoreSpotlightSearch_02
├── SearchAPIs.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ ├── xcshareddata
│ │ │ └── SearchAPIs.xccheckout
│ │ └── xcuserdata
│ │ │ └── chenyilong.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ └── xcuserdata
│ │ ├── Ben.xcuserdatad
│ │ └── xcschemes
│ │ │ └── SearchAPIs.xcscheme
│ │ └── chenyilong.xcuserdatad
│ │ └── xcschemes
│ │ ├── SearchAPIs.xcscheme
│ │ └── xcschememanagement.plist
└── SearchAPIs
│ ├── AppDelegate.h
│ ├── AppDelegate.m
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-40.png
│ │ ├── Icon-40@2x.png
│ │ ├── Icon-40@3x.png
│ │ ├── Icon-60@2x.png
│ │ ├── Icon-60@3x.png
│ │ ├── Icon-72.png
│ │ ├── Icon-72@2x.png
│ │ ├── Icon-76.png
│ │ ├── Icon-76@2x.png
│ │ ├── Icon-Small-50.png
│ │ ├── Icon-Small-50@2x.png
│ │ ├── Icon-Small.png
│ │ ├── Icon-Small@2x.png
│ │ ├── Icon-Small@3x.png
│ │ ├── Icon.png
│ │ └── Icon@2x.png
│ ├── Contents.json
│ ├── LaunchImage.launchimage
│ │ ├── Contents.json
│ │ ├── Default-568h@2x.png
│ │ ├── Default.png
│ │ ├── Default@2x.png
│ │ ├── Default~ipad.png
│ │ ├── Default~ipad@2x.png
│ │ ├── Default~ipad~landscape.png
│ │ ├── Default~ipad~landscape@2x.png
│ │ ├── Default~ipad~landscape~nostatusbar.png
│ │ ├── Default~ipad~landscape~nostatusbar@2x.png
│ │ ├── Default~ipad~nostatusbar.png
│ │ ├── Default~ipad~nostatusbar@2x.png
│ │ ├── iPhone6-Plus-landscape@3x.png
│ │ ├── iPhone6-Plus-portrait@3x.png
│ │ └── iPhone6-portrait@2x.png
│ ├── ben.imageset
│ │ ├── Contents.json
│ │ └── ben.png
│ ├── ios.imageset
│ │ ├── Contents.json
│ │ └── ios.png
│ ├── jane.imageset
│ │ ├── Contents.json
│ │ └── jane.png
│ ├── pete.imageset
│ │ ├── Contents.json
│ │ └── pete.png
│ ├── ray.imageset
│ │ ├── Contents.json
│ │ └── ray.png
│ └── tom.imageset
│ │ ├── Contents.json
│ │ └── tom.png
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Datasource.h
│ ├── Datasource.m
│ ├── FriendTableViewController.h
│ ├── FriendTableViewController.m
│ ├── FriendViewController.h
│ ├── FriendViewController.m
│ ├── Info.plist
│ ├── Person.h
│ ├── Person.m
│ └── main.m
├── README.md
└── 基于HTTP2的全新APNs协议
└── 基于HTTP2的全新APNs协议.md
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁.xcodeproj/project.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁.xcodeproj/project.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁.xcodeproj/project.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁.xcodeproj/project.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁.xcodeproj/project.xcworkspace/xcuserdata/chenyilong.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁.xcodeproj/project.xcworkspace/xcuserdata/chenyilong.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁.xcodeproj/xcuserdata/admin.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
8 |
20 |
21 |
22 |
24 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | B01-tableView.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 18EFF2BF1B25746C00786CE1
16 |
17 | primary
18 |
19 |
20 | 18EFF2D81B25746C00786CE1
21 |
22 | primary
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁.xcodeproj/xcuserdata/apple.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | B01-tableView.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 18EFF2BF1B25746C00786CE1
16 |
17 | primary
18 |
19 |
20 | 18EFF2D81B25746C00786CE1
21 |
22 | primary
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁.xcodeproj/xcuserdata/chenyilong.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
8 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁.xcodeproj/xcuserdata/chenyilong.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | @iOS程序犭袁.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 18EFF2BF1B25746C00786CE1
16 |
17 | primary
18 |
19 |
20 | 18EFF2D81B25746C00786CE1
21 |
22 | primary
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // 微博@iOS程序犭袁
4 | //
5 | // Created by https://github.com/ChenYilong/iOS9AdaptationTips/ on 15/6/8.
6 | // Copyright (c) 2015年 http://weibo.com/luohanchenyilong/ . All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 | @end
16 |
17 |
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // 微博@iOS程序犭袁
4 | //
5 | // Created by https://github.com/ChenYilong/iOS9AdaptationTips/ on 15/6/8.
6 | // Copyright (c) 2015年 http://weibo.com/luohanchenyilong/ . All rights reserved.
7 | //
8 |
9 | #import "AppDelegate.h"
10 |
11 | @interface AppDelegate ()
12 |
13 | @end
14 |
15 | @implementation AppDelegate
16 |
17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
18 | // Override point for customization after application launch.
19 | return YES;
20 | }
21 |
22 | - (void)applicationWillResignActive:(UIApplication *)application {
23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
25 | }
26 |
27 | - (void)applicationDidEnterBackground:(UIApplication *)application {
28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
30 | }
31 |
32 | - (void)applicationWillEnterForeground:(UIApplication *)application {
33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
34 | }
35 |
36 | - (void)applicationDidBecomeActive:(UIApplication *)application {
37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
38 | }
39 |
40 | - (void)applicationWillTerminate:(UIApplication *)application {
41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
42 | }
43 |
44 | @end
45 |
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Classes/Controller/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // 微博@iOS程序犭袁
4 | //
5 | // Created by https://github.com/ChenYilong/iOS9AdaptationTips/ on 15/6/8.
6 | // Copyright (c) 2015年 http://weibo.com/luohanchenyilong/ . All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController : UITableViewController
12 |
13 | @end
14 |
15 |
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Classes/Controller/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // 微博@iOS程序犭袁
4 | //
5 | // Created by https://github.com/ChenYilong/iOS9AdaptationTips/ on 15/6/8.
6 | // Copyright (c) 2015年 http://weibo.com/luohanchenyilong/ . All rights reserved.
7 | //
8 | @import Foundation;
9 |
10 | static NSString *const CYL_HTTP_HOST_URL = @"http://news.coolban.com/Api/Index/news_list/app/2/cat/0/limit/20/time/1433735258/type/0?channel=appstore&uuid=64543C0F-89E1-4D63-B947-DB4C504D13B1&net=5&model=iPhone&ver=1.0.5";
11 |
12 | #import "ViewController.h"
13 | #import "CYLNews.h"
14 | #import "CYLNewsCell.h"
15 |
16 | @interface ViewController ()
17 |
18 | @property (nonatomic, strong) NSArray *news;
19 |
20 | @end
21 |
22 | @implementation ViewController
23 |
24 | - (void)viewDidLoad {
25 | [super viewDidLoad];
26 | [self loadNews];
27 | }
28 |
29 | /*
30 | * 从网络获取json数据
31 | */
32 | - (void)loadNews {
33 | NSURL *url = [NSURL URLWithString:CYL_HTTP_HOST_URL];
34 | NSURLRequest *request = [NSURLRequest requestWithURL:url cachePolicy:1 timeoutInterval:15];
35 | [NSURLConnection sendAsynchronousRequest:request queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
36 | if (!connectionError && data) {
37 | id array = [NSJSONSerialization JSONObjectWithData:data options:0 error:NULL];
38 | //字典转模型
39 | NSMutableArray *mArray = [NSMutableArray array];
40 | for (NSDictionary *dic in array) {
41 | CYLNews *news = [CYLNews newWithDic:dic];
42 | [mArray addObject:news];
43 | }
44 | self.news = mArray.copy;
45 | [self.tableView reloadData];
46 | } else {
47 | NSLog(@"%@",connectionError);
48 | }
49 | }];
50 | }
51 |
52 | #pragma mark - UITableViewDataSource Method
53 |
54 | - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
55 | return self.news.count;
56 | }
57 |
58 | - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
59 | CYLNewsCell *cell = [tableView dequeueReusableCellWithIdentifier:@"news1"];
60 | CYLNews *news = self.news[indexPath.row];
61 | cell.news = news;
62 | return cell;
63 | }
64 |
65 | @end
66 |
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Classes/Model/CYLNews.h:
--------------------------------------------------------------------------------
1 | //
2 | // CZNews.h
3 | // 微博@iOS程序犭袁
4 | //
5 | // Created by https://github.com/ChenYilong/iOS9AdaptationTips/ on 15/6/8.
6 | // Copyright (c) 2015年 http://weibo.com/luohanchenyilong/ . All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface CYLNews : NSObject
12 |
13 | @property (nonatomic, readonly, copy) NSString *title;
14 | @property (nonatomic, readonly, copy) NSString *summary; //摘要
15 | @property (nonatomic, readonly, copy) NSString *img;
16 | @property (nonatomic, readonly, copy) NSString *sitename;
17 | /*
18 | *
19 | 之前写的是 long,但是4s-iOS9模拟器上会崩溃,暂时改成 int 类型
20 | *
21 | */
22 | @property (nonatomic, readonly, assign) int addtime;
23 | @property (nonatomic, readonly, copy) NSString *time;
24 |
25 | + (instancetype)newWithDic:(NSDictionary *)dic;
26 |
27 | @end
28 |
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Classes/Model/CYLNews.m:
--------------------------------------------------------------------------------
1 | //
2 | // CYLNews.m
3 | // 微博@iOS程序犭袁
4 | //
5 | // Created by https://github.com/ChenYilong/iOS9AdaptationTips/ on 15/6/8.
6 | // Copyright (c) 2015年 http://weibo.com/luohanchenyilong/ . All rights reserved.
7 | //
8 |
9 | #import "CYLNews.h"
10 |
11 | @implementation CYLNews
12 |
13 | + (instancetype)newWithDic:(NSDictionary *)dic {
14 | CYLNews *news = [CYLNews new];
15 | for (NSString *pro in [CYLNews getProperties]) {
16 | [news setValue:dic[pro] forKey:pro];
17 | }
18 | return news;
19 | }
20 |
21 | - (NSString *)time {
22 | NSDate *date = [NSDate dateWithTimeIntervalSince1970:self.addtime];
23 | NSDateFormatter *ndf = [NSDateFormatter new];
24 | ndf.dateFormat = @"MM-dd HH:mm";
25 |
26 | return [ndf stringFromDate:date];
27 | }
28 |
29 | /*
30 | * 获取news对象所有的属性
31 | */
32 | + (NSArray *)getProperties {
33 | return @[ @"title", @"summary", @"img", @"sitename", @"addtime" ];
34 | }
35 |
36 | - (NSString *)description{
37 | return [NSString stringWithFormat:@"<%@,%p>{title:%@}",[self class],self,self.title];
38 | }
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Classes/Tool/Lib/SDWebImage/NSData+ImageContentType.h:
--------------------------------------------------------------------------------
1 | //
2 | // Created by Fabrice Aneche on 06/01/14.
3 | // Copyright (c) 2014 Dailymotion. All rights reserved.
4 | //
5 |
6 | #import
7 |
8 | @interface NSData (ImageContentType)
9 |
10 | /**
11 | * Compute the content type for an image data
12 | *
13 | * @param data the input data
14 | *
15 | * @return the content type as string (i.e. image/jpeg, image/gif)
16 | */
17 | + (NSString *)sd_contentTypeForImageData:(NSData *)data;
18 |
19 | @end
20 |
21 |
22 | @interface NSData (ImageContentTypeDeprecated)
23 |
24 | + (NSString *)contentTypeForImageData:(NSData *)data __deprecated_msg("Use `sd_contentTypeForImageData:`");
25 |
26 | @end
27 |
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Classes/Tool/Lib/SDWebImage/NSData+ImageContentType.m:
--------------------------------------------------------------------------------
1 | //
2 | // Created by Fabrice Aneche on 06/01/14.
3 | // Copyright (c) 2014 Dailymotion. All rights reserved.
4 | //
5 |
6 | #import "NSData+ImageContentType.h"
7 |
8 |
9 | @implementation NSData (ImageContentType)
10 |
11 | + (NSString *)sd_contentTypeForImageData:(NSData *)data {
12 | uint8_t c;
13 | [data getBytes:&c length:1];
14 | switch (c) {
15 | case 0xFF:
16 | return @"image/jpeg";
17 | case 0x89:
18 | return @"image/png";
19 | case 0x47:
20 | return @"image/gif";
21 | case 0x49:
22 | case 0x4D:
23 | return @"image/tiff";
24 | case 0x52:
25 | // R as RIFF for WEBP
26 | if ([data length] < 12) {
27 | return nil;
28 | }
29 |
30 | NSString *testString = [[NSString alloc] initWithData:[data subdataWithRange:NSMakeRange(0, 12)] encoding:NSASCIIStringEncoding];
31 | if ([testString hasPrefix:@"RIFF"] && [testString hasSuffix:@"WEBP"]) {
32 | return @"image/webp";
33 | }
34 |
35 | return nil;
36 | }
37 | return nil;
38 | }
39 |
40 | @end
41 |
42 |
43 | @implementation NSData (ImageContentTypeDeprecated)
44 |
45 | + (NSString *)contentTypeForImageData:(NSData *)data {
46 | return [self sd_contentTypeForImageData:data];
47 | }
48 |
49 | @end
50 |
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Classes/Tool/Lib/SDWebImage/SDWebImageCompat.h:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of the SDWebImage package.
3 | * (c) Olivier Poitrey
4 | * (c) Jamie Pinkham
5 | *
6 | * For the full copyright and license information, please view the LICENSE
7 | * file that was distributed with this source code.
8 | */
9 |
10 | #import
11 |
12 | #ifdef __OBJC_GC__
13 | #error SDWebImage does not support Objective-C Garbage Collection
14 | #endif
15 |
16 | #if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_5_0
17 | #error SDWebImage doesn't support Deployement Target version < 5.0
18 | #endif
19 |
20 | #if !TARGET_OS_IPHONE
21 | #import
22 | #ifndef UIImage
23 | #define UIImage NSImage
24 | #endif
25 | #ifndef UIImageView
26 | #define UIImageView NSImageView
27 | #endif
28 | #else
29 |
30 | #import
31 |
32 | #endif
33 |
34 | #ifndef NS_ENUM
35 | #define NS_ENUM(_type, _name) enum _name : _type _name; enum _name : _type
36 | #endif
37 |
38 | #ifndef NS_OPTIONS
39 | #define NS_OPTIONS(_type, _name) enum _name : _type _name; enum _name : _type
40 | #endif
41 |
42 | #if OS_OBJECT_USE_OBJC
43 | #undef SDDispatchQueueRelease
44 | #undef SDDispatchQueueSetterSementics
45 | #define SDDispatchQueueRelease(q)
46 | #define SDDispatchQueueSetterSementics strong
47 | #else
48 | #undef SDDispatchQueueRelease
49 | #undef SDDispatchQueueSetterSementics
50 | #define SDDispatchQueueRelease(q) (dispatch_release(q))
51 | #define SDDispatchQueueSetterSementics assign
52 | #endif
53 |
54 | extern UIImage *SDScaledImageForKey(NSString *key, UIImage *image);
55 |
56 | typedef void(^SDWebImageNoParamsBlock)();
57 |
58 | extern NSString *const SDWebImageErrorDomain;
59 |
60 | #define dispatch_main_sync_safe(block)\
61 | if ([NSThread isMainThread]) {\
62 | block();\
63 | } else {\
64 | dispatch_sync(dispatch_get_main_queue(), block);\
65 | }
66 |
67 | #define dispatch_main_async_safe(block)\
68 | if ([NSThread isMainThread]) {\
69 | block();\
70 | } else {\
71 | dispatch_async(dispatch_get_main_queue(), block);\
72 | }
73 |
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Classes/Tool/Lib/SDWebImage/SDWebImageCompat.m:
--------------------------------------------------------------------------------
1 | //
2 | // SDWebImageCompat.m
3 | // SDWebImage
4 | //
5 | // Created by Olivier Poitrey on 11/12/12.
6 | // Copyright (c) 2012 Dailymotion. All rights reserved.
7 | //
8 |
9 | #import "SDWebImageCompat.h"
10 |
11 | #if !__has_feature(objc_arc)
12 | #error SDWebImage is ARC only. Either turn on ARC for the project or use -fobjc-arc flag
13 | #endif
14 |
15 | inline UIImage *SDScaledImageForKey(NSString *key, UIImage *image) {
16 | if (!image) {
17 | return nil;
18 | }
19 |
20 | if ([image.images count] > 0) {
21 | NSMutableArray *scaledImages = [NSMutableArray array];
22 |
23 | for (UIImage *tempImage in image.images) {
24 | [scaledImages addObject:SDScaledImageForKey(key, tempImage)];
25 | }
26 |
27 | return [UIImage animatedImageWithImages:scaledImages duration:image.duration];
28 | }
29 | else {
30 | if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)]) {
31 | CGFloat scale = 1.0;
32 | if (key.length >= 8) {
33 | // Search @2x. or @3x. at the end of the string, before a 3 to 4 extension length (only if key len is 8 or more @2x./@3x. + 4 len ext)
34 | NSRange range = [key rangeOfString:@"@2x." options:0 range:NSMakeRange(key.length - 8, 5)];
35 | if (range.location != NSNotFound) {
36 | scale = 2.0;
37 | }
38 |
39 | range = [key rangeOfString:@"@3x." options:0 range:NSMakeRange(key.length - 8, 5)];
40 | if (range.location != NSNotFound) {
41 | scale = 3.0;
42 | }
43 | }
44 |
45 | UIImage *scaledImage = [[UIImage alloc] initWithCGImage:image.CGImage scale:scale orientation:image.imageOrientation];
46 | image = scaledImage;
47 | }
48 | return image;
49 | }
50 | }
51 |
52 | NSString *const SDWebImageErrorDomain = @"SDWebImageErrorDomain";
53 |
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Classes/Tool/Lib/SDWebImage/SDWebImageDecoder.h:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of the SDWebImage package.
3 | * (c) Olivier Poitrey
4 | *
5 | * Created by james on 9/28/11.
6 | *
7 | * For the full copyright and license information, please view the LICENSE
8 | * file that was distributed with this source code.
9 | */
10 |
11 | #import
12 | #import "SDWebImageCompat.h"
13 |
14 | @interface UIImage (ForceDecode)
15 |
16 | + (UIImage *)decodedImageWithImage:(UIImage *)image;
17 |
18 | @end
19 |
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Classes/Tool/Lib/SDWebImage/SDWebImageDecoder.m:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of the SDWebImage package.
3 | * (c) Olivier Poitrey
4 | *
5 | * Created by james on 9/28/11.
6 | *
7 | * For the full copyright and license information, please view the LICENSE
8 | * file that was distributed with this source code.
9 | */
10 |
11 | #import "SDWebImageDecoder.h"
12 |
13 | @implementation UIImage (ForceDecode)
14 |
15 | + (UIImage *)decodedImageWithImage:(UIImage *)image {
16 | if (image.images) {
17 | // Do not decode animated images
18 | return image;
19 | }
20 |
21 | CGImageRef imageRef = image.CGImage;
22 | CGSize imageSize = CGSizeMake(CGImageGetWidth(imageRef), CGImageGetHeight(imageRef));
23 | CGRect imageRect = (CGRect){.origin = CGPointZero, .size = imageSize};
24 |
25 | CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
26 | CGBitmapInfo bitmapInfo = CGImageGetBitmapInfo(imageRef);
27 |
28 | int infoMask = (bitmapInfo & kCGBitmapAlphaInfoMask);
29 | BOOL anyNonAlpha = (infoMask == kCGImageAlphaNone ||
30 | infoMask == kCGImageAlphaNoneSkipFirst ||
31 | infoMask == kCGImageAlphaNoneSkipLast);
32 |
33 | // CGBitmapContextCreate doesn't support kCGImageAlphaNone with RGB.
34 | // https://developer.apple.com/library/mac/#qa/qa1037/_index.html
35 | if (infoMask == kCGImageAlphaNone && CGColorSpaceGetNumberOfComponents(colorSpace) > 1) {
36 | // Unset the old alpha info.
37 | bitmapInfo &= ~kCGBitmapAlphaInfoMask;
38 |
39 | // Set noneSkipFirst.
40 | bitmapInfo |= kCGImageAlphaNoneSkipFirst;
41 | }
42 | // Some PNGs tell us they have alpha but only 3 components. Odd.
43 | else if (!anyNonAlpha && CGColorSpaceGetNumberOfComponents(colorSpace) == 3) {
44 | // Unset the old alpha info.
45 | bitmapInfo &= ~kCGBitmapAlphaInfoMask;
46 | bitmapInfo |= kCGImageAlphaPremultipliedFirst;
47 | }
48 |
49 | // It calculates the bytes-per-row based on the bitsPerComponent and width arguments.
50 | CGContextRef context = CGBitmapContextCreate(NULL,
51 | imageSize.width,
52 | imageSize.height,
53 | CGImageGetBitsPerComponent(imageRef),
54 | 0,
55 | colorSpace,
56 | bitmapInfo);
57 | CGColorSpaceRelease(colorSpace);
58 |
59 | // If failed, return undecompressed image
60 | if (!context) return image;
61 |
62 | CGContextDrawImage(context, imageRect, imageRef);
63 | CGImageRef decompressedImageRef = CGBitmapContextCreateImage(context);
64 |
65 | CGContextRelease(context);
66 |
67 | UIImage *decompressedImage = [UIImage imageWithCGImage:decompressedImageRef scale:image.scale orientation:image.imageOrientation];
68 | CGImageRelease(decompressedImageRef);
69 | return decompressedImage;
70 | }
71 |
72 | @end
73 |
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Classes/Tool/Lib/SDWebImage/SDWebImageOperation.h:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of the SDWebImage package.
3 | * (c) Olivier Poitrey
4 | *
5 | * For the full copyright and license information, please view the LICENSE
6 | * file that was distributed with this source code.
7 | */
8 |
9 | #import
10 |
11 | @protocol SDWebImageOperation
12 |
13 | - (void)cancel;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Classes/Tool/Lib/SDWebImage/UIImage+GIF.h:
--------------------------------------------------------------------------------
1 | //
2 | // UIImage+GIF.h
3 | // LBGIFImage
4 | //
5 | // Created by Laurin Brandner on 06.01.12.
6 | // Copyright (c) 2012 __MyCompanyName__. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface UIImage (GIF)
12 |
13 | + (UIImage *)sd_animatedGIFNamed:(NSString *)name;
14 |
15 | + (UIImage *)sd_animatedGIFWithData:(NSData *)data;
16 |
17 | - (UIImage *)sd_animatedImageByScalingAndCroppingToSize:(CGSize)size;
18 |
19 | @end
20 |
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Classes/Tool/Lib/SDWebImage/UIImage+MultiFormat.h:
--------------------------------------------------------------------------------
1 | //
2 | // UIImage+MultiFormat.h
3 | // SDWebImage
4 | //
5 | // Created by Olivier Poitrey on 07/06/13.
6 | // Copyright (c) 2013 Dailymotion. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface UIImage (MultiFormat)
12 |
13 | + (UIImage *)sd_imageWithData:(NSData *)data;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Classes/Tool/Lib/SDWebImage/UIImage+WebP.h:
--------------------------------------------------------------------------------
1 | //
2 | // UIImage+WebP.h
3 | // SDWebImage
4 | //
5 | // Created by Olivier Poitrey on 07/06/13.
6 | // Copyright (c) 2013 Dailymotion. All rights reserved.
7 | //
8 |
9 | #ifdef SD_WEBP
10 |
11 | #import
12 |
13 | // Fix for issue #416 Undefined symbols for architecture armv7 since WebP introduction when deploying to device
14 | void WebPInitPremultiplyNEON(void);
15 |
16 | void WebPInitUpsamplersNEON(void);
17 |
18 | void VP8DspInitNEON(void);
19 |
20 | @interface UIImage (WebP)
21 |
22 | + (UIImage *)sd_imageWithWebPData:(NSData *)data;
23 |
24 | @end
25 |
26 | #endif
27 |
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Classes/Tool/Lib/SDWebImage/UIImage+WebP.m:
--------------------------------------------------------------------------------
1 | //
2 | // UIImage+WebP.m
3 | // SDWebImage
4 | //
5 | // Created by Olivier Poitrey on 07/06/13.
6 | // Copyright (c) 2013 Dailymotion. All rights reserved.
7 | //
8 |
9 | #ifdef SD_WEBP
10 | #import "UIImage+WebP.h"
11 | #import "webp/decode.h"
12 |
13 | // Callback for CGDataProviderRelease
14 | static void FreeImageData(void *info, const void *data, size_t size)
15 | {
16 | free((void *)data);
17 | }
18 |
19 | @implementation UIImage (WebP)
20 |
21 | + (UIImage *)sd_imageWithWebPData:(NSData *)data {
22 | WebPDecoderConfig config;
23 | if (!WebPInitDecoderConfig(&config)) {
24 | return nil;
25 | }
26 |
27 | if (WebPGetFeatures(data.bytes, data.length, &config.input) != VP8_STATUS_OK) {
28 | return nil;
29 | }
30 |
31 | config.output.colorspace = config.input.has_alpha ? MODE_rgbA : MODE_RGB;
32 | config.options.use_threads = 1;
33 |
34 | // Decode the WebP image data into a RGBA value array.
35 | if (WebPDecode(data.bytes, data.length, &config) != VP8_STATUS_OK) {
36 | return nil;
37 | }
38 |
39 | int width = config.input.width;
40 | int height = config.input.height;
41 | if (config.options.use_scaling) {
42 | width = config.options.scaled_width;
43 | height = config.options.scaled_height;
44 | }
45 |
46 | // Construct a UIImage from the decoded RGBA value array.
47 | CGDataProviderRef provider =
48 | CGDataProviderCreateWithData(NULL, config.output.u.RGBA.rgba, config.output.u.RGBA.size, FreeImageData);
49 | CGColorSpaceRef colorSpaceRef = CGColorSpaceCreateDeviceRGB();
50 | CGBitmapInfo bitmapInfo = config.input.has_alpha ? kCGBitmapByteOrder32Big | kCGImageAlphaPremultipliedLast : 0;
51 | size_t components = config.input.has_alpha ? 4 : 3;
52 | CGColorRenderingIntent renderingIntent = kCGRenderingIntentDefault;
53 | CGImageRef imageRef = CGImageCreate(width, height, 8, components * 8, components * width, colorSpaceRef, bitmapInfo, provider, NULL, NO, renderingIntent);
54 |
55 | CGColorSpaceRelease(colorSpaceRef);
56 | CGDataProviderRelease(provider);
57 |
58 | UIImage *image = [[UIImage alloc] initWithCGImage:imageRef];
59 | CGImageRelease(imageRef);
60 |
61 | return image;
62 | }
63 |
64 | @end
65 |
66 | #if !COCOAPODS
67 | // Functions to resolve some undefined symbols when using WebP and force_load flag
68 | void WebPInitPremultiplyNEON(void) {}
69 | void WebPInitUpsamplersNEON(void) {}
70 | void VP8DspInitNEON(void) {}
71 | #endif
72 |
73 | #endif
74 |
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Classes/Tool/Lib/SDWebImage/UIView+WebCacheOperation.h:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of the SDWebImage package.
3 | * (c) Olivier Poitrey
4 | *
5 | * For the full copyright and license information, please view the LICENSE
6 | * file that was distributed with this source code.
7 | */
8 |
9 | #import
10 | #import "SDWebImageManager.h"
11 |
12 | @interface UIView (WebCacheOperation)
13 |
14 | /**
15 | * Set the image load operation (storage in a UIView based dictionary)
16 | *
17 | * @param operation the operation
18 | * @param key key for storing the operation
19 | */
20 | - (void)sd_setImageLoadOperation:(id)operation forKey:(NSString *)key;
21 |
22 | /**
23 | * Cancel all operations for the current UIView and key
24 | *
25 | * @param key key for identifying the operations
26 | */
27 | - (void)sd_cancelImageLoadOperationWithKey:(NSString *)key;
28 |
29 | /**
30 | * Just remove the operations corresponding to the current UIView and key without cancelling them
31 | *
32 | * @param key key for identifying the operations
33 | */
34 | - (void)sd_removeImageLoadOperationWithKey:(NSString *)key;
35 |
36 | @end
37 |
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Classes/Tool/Lib/SDWebImage/UIView+WebCacheOperation.m:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of the SDWebImage package.
3 | * (c) Olivier Poitrey
4 | *
5 | * For the full copyright and license information, please view the LICENSE
6 | * file that was distributed with this source code.
7 | */
8 |
9 | #import "UIView+WebCacheOperation.h"
10 | #import "objc/runtime.h"
11 |
12 | static char loadOperationKey;
13 |
14 | @implementation UIView (WebCacheOperation)
15 |
16 | - (NSMutableDictionary *)operationDictionary {
17 | NSMutableDictionary *operations = objc_getAssociatedObject(self, &loadOperationKey);
18 | if (operations) {
19 | return operations;
20 | }
21 | operations = [NSMutableDictionary dictionary];
22 | objc_setAssociatedObject(self, &loadOperationKey, operations, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
23 | return operations;
24 | }
25 |
26 | - (void)sd_setImageLoadOperation:(id)operation forKey:(NSString *)key {
27 | [self sd_cancelImageLoadOperationWithKey:key];
28 | NSMutableDictionary *operationDictionary = [self operationDictionary];
29 | [operationDictionary setObject:operation forKey:key];
30 | }
31 |
32 | - (void)sd_cancelImageLoadOperationWithKey:(NSString *)key {
33 | // Cancel in progress downloader from queue
34 | NSMutableDictionary *operationDictionary = [self operationDictionary];
35 | id operations = [operationDictionary objectForKey:key];
36 | if (operations) {
37 | if ([operations isKindOfClass:[NSArray class]]) {
38 | for (id operation in operations) {
39 | if (operation) {
40 | [operation cancel];
41 | }
42 | }
43 | } else if ([operations conformsToProtocol:@protocol(SDWebImageOperation)]){
44 | [(id) operations cancel];
45 | }
46 | [operationDictionary removeObjectForKey:key];
47 | }
48 | }
49 |
50 | - (void)sd_removeImageLoadOperationWithKey:(NSString *)key {
51 | NSMutableDictionary *operationDictionary = [self operationDictionary];
52 | [operationDictionary removeObjectForKey:key];
53 | }
54 |
55 | @end
56 |
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Classes/View/CYLNewsCell.h:
--------------------------------------------------------------------------------
1 | //
2 | // CYLNewsCell.h
3 | // 微博@iOS程序犭袁
4 | //
5 | // Created by https://github.com/ChenYilong/iOS9AdaptationTips/ on 15/6/8.
6 | // Copyright (c) 2015年 http://weibo.com/luohanchenyilong/ . All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @class CYLNews;
12 |
13 | @interface CYLNewsCell : UITableViewCell
14 |
15 | @property (nonatomic, strong) CYLNews *news;
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Classes/View/CYLNewsCell.m:
--------------------------------------------------------------------------------
1 | //
2 | // CYLNewsCell.m
3 | // 微博@iOS程序犭袁
4 | //
5 | // Created by https://github.com/ChenYilong/iOS9AdaptationTips/ on 15/6/8.
6 | // Copyright (c) 2015年 http://weibo.com/luohanchenyilong/ . All rights reserved.
7 | //
8 |
9 | #import "CYLNewsCell.h"
10 | #import "CYLNews.h"
11 | #import "UIImageView+WebCache.h"
12 |
13 | @interface CYLNewsCell ()
14 |
15 | @property (nonatomic, weak) IBOutlet UILabel *titleView;
16 | @property (nonatomic, weak) IBOutlet UILabel *summaryView;
17 | @property (nonatomic, weak) IBOutlet UILabel *sitenameView;
18 | @property (nonatomic, weak) IBOutlet UIImageView *imgView;
19 | @property (nonatomic, weak) IBOutlet UILabel *addtimeView;
20 |
21 | @end
22 |
23 | @implementation CYLNewsCell
24 |
25 | - (void)setNews:(CYLNews *)news{
26 | _news = news;
27 | self.titleView.text = news.title;
28 | self.summaryView.text = news.summary;
29 | self.sitenameView.text = news.sitename;
30 | [self.imgView sd_setImageWithURL:[NSURL URLWithString:news.img]];
31 | self.addtimeView.text = news.time;
32 | }
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-40.png
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-40@2x.png
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-40@3x.png
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-60@2x.png
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-60@3x.png
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-72.png
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-72@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-72@2x.png
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-76.png
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-76@2x.png
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-Small-50.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-Small-50.png
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-Small-50@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-Small-50@2x.png
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-Small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-Small.png
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-Small@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-Small@2x.png
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-Small@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-Small@3x.png
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon.png
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon@2x.png
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default-568h@2x.png
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default.png
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default@2x.png
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad.png
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad@2x.png
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape.png
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape@2x.png
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar.png
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar@2x.png
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar.png
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar@2x.png
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/iPhone6-Plus-landscape@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/iPhone6-Plus-landscape@3x.png
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/iPhone6-Plus-portrait@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/iPhone6-Plus-portrait@3x.png
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/iPhone6-portrait@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/iPhone6-portrait@2x.png
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | 微博@iOS程序犭袁
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | NSAppTransportSecurity
26 |
27 | NSAllowsArbitraryLoads
28 |
29 |
30 | UIMainStoryboardFile
31 | Main
32 | UIRequiredDeviceCapabilities
33 |
34 | armv7
35 |
36 | UISupportedInterfaceOrientations
37 |
38 | UIInterfaceOrientationPortrait
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/http问题.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/http问题.gif
--------------------------------------------------------------------------------
/Demo1_iOS9网络适配_改用更安全的HTTPS/微博@iOS程序犭袁/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // 微博@iOS程序犭袁
4 | //
5 | // Created by https://github.com/ChenYilong/iOS9AdaptationTips/ on 15/6/8.
6 | // Copyright (c) 2015年 http://weibo.com/luohanchenyilong/ . All rights reserved.
7 | //
8 |
9 | #import
10 | #import "AppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁.xcodeproj/project.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁.xcodeproj/project.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁.xcodeproj/project.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁.xcodeproj/project.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁.xcodeproj/project.xcworkspace/xcuserdata/chenyilong.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁.xcodeproj/project.xcworkspace/xcuserdata/chenyilong.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁.xcodeproj/xcuserdata/admin.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
8 |
20 |
21 |
22 |
24 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | B01-tableView.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 18EFF2BF1B25746C00786CE1
16 |
17 | primary
18 |
19 |
20 | 18EFF2D81B25746C00786CE1
21 |
22 | primary
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁.xcodeproj/xcuserdata/apple.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | B01-tableView.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 18EFF2BF1B25746C00786CE1
16 |
17 | primary
18 |
19 |
20 | 18EFF2D81B25746C00786CE1
21 |
22 | primary
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁.xcodeproj/xcuserdata/chenyilong.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
8 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁.xcodeproj/xcuserdata/chenyilong.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | @iOS程序犭袁.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 18EFF2BF1B25746C00786CE1
16 |
17 | primary
18 |
19 |
20 | 18EFF2D81B25746C00786CE1
21 |
22 | primary
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // 微博@iOS程序犭袁
4 | //
5 | // Created by https://github.com/ChenYilong/iOS9AdaptationTips/ on 15/6/8.
6 | // Copyright (c) 2015年 http://weibo.com/luohanchenyilong/ . All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 | @property (nonatomic, strong) UINavigationController *navigationController;
15 |
16 | @end
17 |
18 |
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Classes/Controller/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // 微博@iOS程序犭袁
4 | //
5 | // Created by https://github.com/ChenYilong/iOS9AdaptationTips/ on 15/6/8.
6 | // Copyright (c) 2015年 http://weibo.com/luohanchenyilong/ . All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController : UIViewController
12 |
13 | @end
14 |
15 |
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Classes/Tool/Lib/WGS84TOGCJ02.h:
--------------------------------------------------------------------------------
1 | //
2 | // WGS84TOGCJ02.h
3 | // REFrostedViewControllerExample
4 | //
5 | // Created by CHENYI LONG on 14-9-21.
6 | // Copyright (c) 2014年 Roman Efimov. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | @interface WGS84TOGCJ02 : NSObject
13 | //判断是否已经超出中国范围
14 | +(BOOL)isLocationOutOfChina:(CLLocationCoordinate2D)location;
15 | //转GCJ-02
16 | +(CLLocationCoordinate2D)transformFromWGSToGCJ:(CLLocationCoordinate2D)wgsLoc;
17 | @end
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Classes/Tool/Lib/WGS84TOGCJ02.m:
--------------------------------------------------------------------------------
1 | //
2 | // WGS84TOGCJ02.m
3 | // REFrostedViewControllerExample
4 | //
5 | // Created by CHENYI LONG on 14-9-21.
6 | // Copyright (c) 2014年 Roman Efimov. All rights reserved.
7 | //
8 |
9 | // Copyright (c) 2013年 swinglife. All rights reserved.
10 | //
11 |
12 | #import "WGS84TOGCJ02.h"
13 |
14 | const double a = 6378245.0;
15 | const double ee = 0.00669342162296594323;
16 | const double pi = 3.14159265358979324;
17 |
18 | @implementation WGS84TOGCJ02
19 |
20 | +(CLLocationCoordinate2D)transformFromWGSToGCJ:(CLLocationCoordinate2D)wgsLoc
21 | {
22 | CLLocationCoordinate2D adjustLoc;
23 | if([self isLocationOutOfChina:wgsLoc]){
24 | adjustLoc = wgsLoc;
25 | }else{
26 | double adjustLat = [self transformLatWithX:wgsLoc.longitude - 105.0 withY:wgsLoc.latitude - 35.0];
27 | double adjustLon = [self transformLonWithX:wgsLoc.longitude - 105.0 withY:wgsLoc.latitude - 35.0];
28 | double radLat = wgsLoc.latitude / 180.0 * pi;
29 | double magic = sin(radLat);
30 | magic = 1 - ee * magic * magic;
31 | double sqrtMagic = sqrt(magic);
32 | adjustLat = (adjustLat * 180.0) / ((a * (1 - ee)) / (magic * sqrtMagic) * pi);
33 | adjustLon = (adjustLon * 180.0) / (a / sqrtMagic * cos(radLat) * pi);
34 | adjustLoc.latitude = wgsLoc.latitude + adjustLat;
35 | adjustLoc.longitude = wgsLoc.longitude + adjustLon;
36 | }
37 | return adjustLoc;
38 | }
39 |
40 | //判断是不是在中国
41 | +(BOOL)isLocationOutOfChina:(CLLocationCoordinate2D)location
42 | {
43 | if (location.longitude < 72.004 || location.longitude > 137.8347 || location.latitude < 0.8293 || location.latitude > 55.8271)
44 | return YES;
45 | return NO;
46 | }
47 |
48 | +(double)transformLatWithX:(double)x withY:(double)y
49 | {
50 | double lat = -100.0 + 2.0 * x + 3.0 * y + 0.2 * y * y + 0.1 * x * y + 0.2 * sqrt(fabs(x));
51 | lat += (20.0 * sin(6.0 * x * pi) + 20.0 *sin(2.0 * x * pi)) * 2.0 / 3.0;
52 | lat += (20.0 * sin(y * pi) + 40.0 * sin(y / 3.0 * pi)) * 2.0 / 3.0;
53 | lat += (160.0 * sin(y / 12.0 * pi) + 320 * sin(y * pi / 30.0)) * 2.0 / 3.0;
54 | return lat;
55 | }
56 |
57 | +(double)transformLonWithX:(double)x withY:(double)y
58 | {
59 | double lon = 300.0 + x + 2.0 * y + 0.1 * x * x + 0.1 * x * y + 0.1 * sqrt(fabs(x));
60 | lon += (20.0 * sin(6.0 * x * pi) + 20.0 * sin(2.0 * x * pi)) * 2.0 / 3.0;
61 | lon += (20.0 * sin(x * pi) + 40.0 * sin(x / 3.0 * pi)) * 2.0 / 3.0;
62 | lon += (150.0 * sin(x / 12.0 * pi) + 300.0 * sin(x / 30.0 * pi)) * 2.0 / 3.0;
63 | return lon;
64 | }
65 |
66 | @end
67 |
68 |
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-40.png
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-40@2x.png
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-40@3x.png
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-60@2x.png
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-60@3x.png
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-72.png
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-72@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-72@2x.png
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-76.png
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-76@2x.png
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-Small-50.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-Small-50.png
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-Small-50@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-Small-50@2x.png
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-Small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-Small.png
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-Small@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-Small@2x.png
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-Small@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-Small@3x.png
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon.png
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon@2x.png
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default-568h@2x.png
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default.png
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default@2x.png
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad.png
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad@2x.png
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape.png
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape@2x.png
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar.png
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar@2x.png
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar.png
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar@2x.png
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/iPhone6-Plus-landscape@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/iPhone6-Plus-landscape@3x.png
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/iPhone6-Plus-portrait@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/iPhone6-Plus-portrait@3x.png
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/iPhone6-portrait@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/iPhone6-portrait@2x.png
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | 微博@iOS程序犭袁
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | NSLocationAlwaysUsageDescription
26 | 微博@iOS程序犭袁 请求后台定位权限
27 | NSLocationWhenInUseUsageDescription
28 | 微博@iOS程序犭袁 请求前台定位权限
29 | UIBackgroundModes
30 |
31 | location
32 |
33 | UIRequiredDeviceCapabilities
34 |
35 | armv7
36 |
37 | UISupportedInterfaceOrientations
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationLandscapeLeft
41 | UIInterfaceOrientationLandscapeRight
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/Demo2_iOS9新特性_更灵活的后台定位/微博@iOS程序犭袁/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // 微博@iOS程序犭袁
4 | //
5 | // Created by https://github.com/ChenYilong/iOS9AdaptationTips/ on 15/6/8.
6 | // Copyright (c) 2015年 http://weibo.com/luohanchenyilong/ . All rights reserved.
7 | //
8 |
9 | #import
10 | #import "AppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 gatzsche
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/LSApplicationQueriesSchemes.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/LSApplicationQueriesSchemes.xcodeproj/project.xcworkspace/xcshareddata/LSApplicationQueriesSchemes.xccheckout:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDESourceControlProjectFavoriteDictionaryKey
6 |
7 | IDESourceControlProjectIdentifier
8 | 0C458831-44B4-472E-BD43-5C91087A4CBF
9 | IDESourceControlProjectName
10 | LSApplicationQueriesSchemes
11 | IDESourceControlProjectOriginsDictionary
12 |
13 | FE1A655B2A450A8470CCA21768E6AA4D6897F91B
14 | https://github.com/ChenYilong/iOS9AdaptationTips.git
15 |
16 | IDESourceControlProjectPath
17 | Demo3_iOS9URLScheme适配_引入白名单概念/LSApplicationQueriesSchemes.xcodeproj
18 | IDESourceControlProjectRelativeInstallPathDictionary
19 |
20 | FE1A655B2A450A8470CCA21768E6AA4D6897F91B
21 | ../../..
22 |
23 | IDESourceControlProjectURL
24 | https://github.com/ChenYilong/iOS9AdaptationTips.git
25 | IDESourceControlProjectVersion
26 | 111
27 | IDESourceControlProjectWCCIdentifier
28 | FE1A655B2A450A8470CCA21768E6AA4D6897F91B
29 | IDESourceControlProjectWCConfigurations
30 |
31 |
32 | IDESourceControlRepositoryExtensionIdentifierKey
33 | public.vcs.git
34 | IDESourceControlWCCIdentifierKey
35 | FE1A655B2A450A8470CCA21768E6AA4D6897F91B
36 | IDESourceControlWCCName
37 | iOS9AdaptationTips
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/LSApplicationQueriesSchemes.xcodeproj/project.xcworkspace/xcuserdata/chenyilong.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/LSApplicationQueriesSchemes.xcodeproj/project.xcworkspace/xcuserdata/chenyilong.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/LSApplicationQueriesSchemes.xcodeproj/xcuserdata/chenyilong.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | testA.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 | testB.xcscheme
13 |
14 | orderHint
15 | 1
16 |
17 |
18 | SuppressBuildableAutocreation
19 |
20 | 025154FD1B3BF44400ABEEEA
21 |
22 | primary
23 |
24 |
25 | 0251551B1B3BF48D00ABEEEA
26 |
27 | primary
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // Test<#AB#>AppDelegate.h
3 | // testA
4 | //
5 | // Created by Gabriel Gatzsche on 25.06.15.
6 | // Copyright © 2015 Audanika. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface TestAAppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 |
16 | @end
17 |
18 |
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // Test<#AB#>AppDelegate.m
3 | // testA
4 | //
5 | // Created by Gabriel Gatzsche on 25.06.15.
6 | // Copyright © 2015 Audanika. All rights reserved.
7 | //
8 |
9 | #import "TestAAppDelegate.h"
10 |
11 | @interface TestAAppDelegate ()
12 |
13 | @end
14 |
15 | @implementation TestAAppDelegate
16 |
17 |
18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
19 | // Override point for customization after application launch.
20 | return YES;
21 | }
22 |
23 | - (void)applicationWillResignActive:(UIApplication *)application {
24 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
25 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
26 | }
27 |
28 | - (void)applicationDidEnterBackground:(UIApplication *)application {
29 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
31 | }
32 |
33 | - (void)applicationWillEnterForeground:(UIApplication *)application {
34 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
35 | }
36 |
37 | - (void)applicationDidBecomeActive:(UIApplication *)application {
38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
39 | }
40 |
41 | - (void)applicationWillTerminate:(UIApplication *)application {
42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
43 | }
44 |
45 | @end
46 |
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon-40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon-40.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon-40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon-40@2x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon-40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon-40@3x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon-60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon-60@2x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon-60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon-60@3x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon-72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon-72.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon-72@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon-72@2x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon-76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon-76.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon-76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon-76@2x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon-Small-50.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon-Small-50.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon-Small-50@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon-Small-50@2x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon-Small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon-Small.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon-Small@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon-Small@2x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon-Small@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon-Small@3x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/AppIcon.appiconset/Icon@2x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/LaunchImage.launchimage/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/LaunchImage.launchimage/Default-568h@2x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/LaunchImage.launchimage/Default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/LaunchImage.launchimage/Default.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/LaunchImage.launchimage/Default@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/LaunchImage.launchimage/Default@2x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/LaunchImage.launchimage/Default~ipad.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/LaunchImage.launchimage/Default~ipad.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/LaunchImage.launchimage/Default~ipad@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/LaunchImage.launchimage/Default~ipad@2x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/LaunchImage.launchimage/Default~ipad~landscape.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/LaunchImage.launchimage/Default~ipad~landscape.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/LaunchImage.launchimage/Default~ipad~landscape@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/LaunchImage.launchimage/Default~ipad~landscape@2x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar@2x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar@2x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/LaunchImage.launchimage/iPhone6-Plus-landscape@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/LaunchImage.launchimage/iPhone6-Plus-landscape@3x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/LaunchImage.launchimage/iPhone6-Plus-portrait@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/LaunchImage.launchimage/iPhone6-Plus-portrait@3x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/LaunchImage.launchimage/iPhone6-portrait@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAAssets.xcassets/LaunchImage.launchimage/iPhone6-portrait@2x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleURLTypes
22 |
23 |
24 | CFBundleTypeRole
25 | Editor
26 | CFBundleURLName
27 | com.audanika.${PRODUCT_NAME}
28 | CFBundleURLSchemes
29 |
30 | ${PRODUCT_NAME}
31 | ${PRODUCT_NAME:rfc1034identifier}.scheme2
32 |
33 |
34 |
35 | CFBundleVersion
36 | 1
37 | LSApplicationQueriesSchemes
38 |
39 | TestB
40 | TestB.scheme2
41 |
42 | LSRequiresIPhoneOS
43 |
44 | UIMainStoryboardFile
45 | TestAMain
46 | UIRequiredDeviceCapabilities
47 |
48 | armv7
49 |
50 | UISupportedInterfaceOrientations
51 |
52 | UIInterfaceOrientationPortrait
53 | UIInterfaceOrientationLandscapeLeft
54 | UIInterfaceOrientationLandscapeRight
55 |
56 | UISupportedInterfaceOrientations~ipad
57 |
58 | UIInterfaceOrientationPortrait
59 | UIInterfaceOrientationPortraitUpsideDown
60 | UIInterfaceOrientationLandscapeLeft
61 | UIInterfaceOrientationLandscapeRight
62 |
63 |
64 |
65 |
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // Test<#AB#>ViewController.h
3 | // testA
4 | //
5 | // Created by Gabriel Gatzsche on 25.06.15.
6 | // Copyright © 2015 Audanika. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface TestAViewController : UIViewController
12 |
13 |
14 | @end
15 |
16 |
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/TestAViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // TestAViewController.m
3 | // testA
4 | //
5 | // Created by Gabriel Gatzsche on 25.06.15.
6 | // Copyright © 2015 Audanika. All rights reserved.
7 | //
8 |
9 | #import "TestAViewController.h"
10 |
11 | @interface TestAViewController ()
12 | @property (weak, nonatomic) IBOutlet UILabel *resultLabel;
13 | @end
14 |
15 | @implementation TestAViewController
16 |
17 | - (void)viewDidLoad {
18 | [super viewDidLoad];
19 | // Do any additional setup after loading the view, typically from a nib.
20 | }
21 |
22 | - (void)didReceiveMemoryWarning {
23 | [super didReceiveMemoryWarning];
24 | // Dispose of any resources that can be recreated.
25 | }
26 |
27 | - (IBAction)buttonPressed:(id)sender {
28 | BOOL canBeOpened = [[UIApplication sharedApplication]
29 | canOpenURL:[NSURL URLWithString:@"TestB.scheme2://"]];
30 |
31 | if (canBeOpened) {
32 | _resultLabel.hidden = NO;
33 | _resultLabel.text = @"TestB can be opened!";
34 | }
35 | else{
36 | _resultLabel.hidden = NO;
37 | _resultLabel.text = @"TestB cannot be opened!";
38 | }
39 | }
40 |
41 | @end
42 |
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/mainTestA.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // testA
4 | //
5 | // Created by Gabriel Gatzsche on 25.06.15.
6 | // Copyright © 2015 Audanika. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "TestAAppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([TestAAppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testA/testAAppIcons.sketch:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testA/testAAppIcons.sketch
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // Test<#AB#>AppDelegate.h
3 | // testB
4 | //
5 | // Created by Gabriel Gatzsche on 25.06.15.
6 | // Copyright © 2015 Audanika. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface TestBAppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 |
16 | @end
17 |
18 |
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // TestBAppDelegate.m
3 | // testB
4 | //
5 | // Created by Gabriel Gatzsche on 25.06.15.
6 | // Copyright © 2015 Audanika. All rights reserved.
7 | //
8 |
9 | #import "TestBAppDelegate.h"
10 |
11 | @interface TestBAppDelegate ()
12 |
13 | @end
14 |
15 | @implementation TestBAppDelegate
16 |
17 |
18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
19 | // Override point for customization after application launch.
20 | return YES;
21 | }
22 |
23 | - (void)applicationWillResignActive:(UIApplication *)application {
24 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
25 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
26 | }
27 |
28 | - (void)applicationDidEnterBackground:(UIApplication *)application {
29 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
31 | }
32 |
33 | - (void)applicationWillEnterForeground:(UIApplication *)application {
34 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
35 | }
36 |
37 | - (void)applicationDidBecomeActive:(UIApplication *)application {
38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
39 | }
40 |
41 | - (void)applicationWillTerminate:(UIApplication *)application {
42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
43 | }
44 |
45 | @end
46 |
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon-40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon-40.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon-40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon-40@2x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon-40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon-40@3x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon-60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon-60@2x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon-60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon-60@3x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon-72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon-72.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon-72@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon-72@2x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon-76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon-76.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon-76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon-76@2x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon-Small-50.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon-Small-50.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon-Small-50@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon-Small-50@2x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon-Small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon-Small.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon-Small@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon-Small@2x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon-Small@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon-Small@3x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/AppIcon.appiconset/Icon@2x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/LaunchImage.launchimage/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/LaunchImage.launchimage/Default-568h@2x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/LaunchImage.launchimage/Default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/LaunchImage.launchimage/Default.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/LaunchImage.launchimage/Default@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/LaunchImage.launchimage/Default@2x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/LaunchImage.launchimage/Default~ipad.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/LaunchImage.launchimage/Default~ipad.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/LaunchImage.launchimage/Default~ipad@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/LaunchImage.launchimage/Default~ipad@2x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/LaunchImage.launchimage/Default~ipad~landscape.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/LaunchImage.launchimage/Default~ipad~landscape.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/LaunchImage.launchimage/Default~ipad~landscape@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/LaunchImage.launchimage/Default~ipad~landscape@2x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar@2x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar@2x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/LaunchImage.launchimage/iPhone6-Plus-landscape@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/LaunchImage.launchimage/iPhone6-Plus-landscape@3x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/LaunchImage.launchimage/iPhone6-Plus-portrait@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/LaunchImage.launchimage/iPhone6-Plus-portrait@3x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/LaunchImage.launchimage/iPhone6-portrait@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBAssets.xcassets/LaunchImage.launchimage/iPhone6-portrait@2x.png
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleURLTypes
22 |
23 |
24 | CFBundleTypeRole
25 | Editor
26 | CFBundleURLName
27 | com.audanika.${PRODUCT_NAME}
28 | CFBundleURLSchemes
29 |
30 | ${PRODUCT_NAME}
31 | ${PRODUCT_NAME:rfc1034identifier}.scheme2
32 |
33 |
34 |
35 | CFBundleVersion
36 | 1
37 | LSApplicationQueriesSchemes
38 |
39 | TestA
40 | TestA.scheme2
41 |
42 | LSRequiresIPhoneOS
43 |
44 | UIMainStoryboardFile
45 | TestBMain
46 | UIRequiredDeviceCapabilities
47 |
48 | armv7
49 |
50 | UISupportedInterfaceOrientations
51 |
52 | UIInterfaceOrientationPortrait
53 | UIInterfaceOrientationLandscapeLeft
54 | UIInterfaceOrientationLandscapeRight
55 |
56 | UISupportedInterfaceOrientations~ipad
57 |
58 | UIInterfaceOrientationPortrait
59 | UIInterfaceOrientationPortraitUpsideDown
60 | UIInterfaceOrientationLandscapeLeft
61 | UIInterfaceOrientationLandscapeRight
62 |
63 |
64 |
65 |
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // Test<#AB#>ViewController.h
3 | // testB
4 | //
5 | // Created by Gabriel Gatzsche on 25.06.15.
6 | // Copyright © 2015 Audanika. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface TestBViewController : UIViewController
12 |
13 |
14 | @end
15 |
16 |
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/TestBViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // TestBViewController.m
3 | // testB
4 | //
5 | // Created by Gabriel Gatzsche on 25.06.15.
6 | // Copyright © 2015 Audanika. All rights reserved.
7 | //
8 |
9 | #import "TestBViewController.h"
10 |
11 | @interface TestBViewController ()
12 | @property (weak, nonatomic) IBOutlet UILabel *resultLabel;
13 |
14 | @end
15 |
16 | @implementation TestBViewController
17 |
18 | - (void)viewDidLoad {
19 | [super viewDidLoad];
20 | [_resultLabel sizeToFit];
21 | // Do any additional setup after loading the view, typically from a nib.
22 | }
23 |
24 | - (void)didReceiveMemoryWarning {
25 | [super didReceiveMemoryWarning];
26 | // Dispose of any resources that can be recreated.
27 | }
28 | - (IBAction)buttonPressed:(id)sender {
29 | BOOL canBeOpened = [[UIApplication sharedApplication]
30 | canOpenURL:[NSURL URLWithString:@"TestA.scheme2://"]];
31 |
32 | if (canBeOpened) {
33 | _resultLabel.hidden = NO;
34 | _resultLabel.text = @"TestA can be opened!";
35 | }
36 | else{
37 | _resultLabel.hidden = NO;
38 | _resultLabel.text = @"TestA cannot be opened!";
39 | }
40 |
41 | }
42 |
43 | @end
44 |
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/mainTestB.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // testB
4 | //
5 | // Created by Gabriel Gatzsche on 25.06.15.
6 | // Copyright © 2015 Audanika. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "TestBAppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([TestBAppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Demo3_iOS9URLScheme适配_引入白名单概念/testB/testBAppIcons.sketch:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo3_iOS9URLScheme适配_引入白名单概念/testB/testBAppIcons.sketch
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁.xcodeproj/project.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁.xcodeproj/project.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁.xcodeproj/project.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁.xcodeproj/project.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁.xcodeproj/project.xcworkspace/xcuserdata/chenyilong.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁.xcodeproj/project.xcworkspace/xcuserdata/chenyilong.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁.xcodeproj/xcuserdata/admin.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
8 |
20 |
21 |
22 |
24 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | B01-tableView.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 18EFF2BF1B25746C00786CE1
16 |
17 | primary
18 |
19 |
20 | 18EFF2D81B25746C00786CE1
21 |
22 | primary
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁.xcodeproj/xcuserdata/apple.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | B01-tableView.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 18EFF2BF1B25746C00786CE1
16 |
17 | primary
18 |
19 |
20 | 18EFF2D81B25746C00786CE1
21 |
22 | primary
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁.xcodeproj/xcuserdata/chenyilong.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
8 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁.xcodeproj/xcuserdata/chenyilong.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | @iOS程序犭袁.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 18EFF2BF1B25746C00786CE1
16 |
17 | primary
18 |
19 |
20 | 18EFF2D81B25746C00786CE1
21 |
22 | primary
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // 微博@iOS程序犭袁
4 | //
5 | // Created by https://github.com/ChenYilong/iOS9AdaptationTips/ on 15/6/8.
6 | // Copyright (c) 2015年 http://weibo.com/luohanchenyilong/ . All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 | @property (nonatomic, strong) UINavigationController *navigationController;
15 |
16 | @end
17 |
18 |
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Classes/Controller/UINavigationController+StatusBarStyle.h:
--------------------------------------------------------------------------------
1 | //
2 | // UINavigationController+StatusBarStyle.h
3 | // 微博@iOS程序犭袁
4 | //
5 | // Created by https://github.com/ChenYilong/iOS9AdaptationTips/ on 15/6/8.
6 | // Copyright (c) 2015年 http://weibo.com/luohanchenyilong/ . All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface UINavigationController (StatusBarStyle)
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Classes/Controller/UINavigationController+StatusBarStyle.m:
--------------------------------------------------------------------------------
1 | //
2 | // UINavigationController+StatusBarStyle.m
3 | // 微博@iOS程序犭袁
4 | //
5 | // Created by https://github.com/ChenYilong/iOS9AdaptationTips/ on 15/6/8.
6 | // Copyright (c) 2015年 http://weibo.com/luohanchenyilong/ . All rights reserved.
7 | //
8 |
9 | #import "UINavigationController+StatusBarStyle.h"
10 |
11 | @implementation UINavigationController (StatusBarStyle)
12 |
13 | /*
14 | *
15 | 因为在 ViewController 里已经设置了 self.navigationController.navigationBar.barStyle = UIBarStyleBlack;
16 | 所以不需要使用下面的分类方法,如果不在 ViewController 里已经设置,可采用下面的分类方法来达到设置状态栏的效果。
17 | *
18 | */
19 |
20 | //- (UIStatusBarStyle)preferredStatusBarStyle
21 | //{
22 | // //also you may add any fancy condition-based code here
23 | // return UIStatusBarStyleLightContent;
24 | //}
25 |
26 | @end
27 |
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Classes/Controller/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // 微博@iOS程序犭袁
4 | //
5 | // Created by https://github.com/ChenYilong/iOS9AdaptationTips/ on 15/6/8.
6 | // Copyright (c) 2015年 http://weibo.com/luohanchenyilong/ . All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController : UIViewController
12 |
13 | @end
14 |
15 |
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Classes/Controller/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // 微博@iOS程序犭袁
4 | //
5 | // Created by https://github.com/ChenYilong/iOS9AdaptationTips/ on 15/6/8.
6 | // Copyright (c) 2015年 http://weibo.com/luohanchenyilong/ . All rights reserved.
7 | //
8 |
9 | #import "ViewController.h"
10 |
11 | @implementation ViewController
12 |
13 | - (void)viewDidLoad
14 | {
15 | [super viewDidLoad];
16 | self.title = @"微博@iOS程序犭袁";
17 | /*
18 | *
19 | 因为在 ViewController 里已经设置了 self.navigationController.navigationBar.barStyle = UIBarStyleBlack;
20 | 所以不需要使用分类方法,如果不像下面这样在 ViewController 里已经设置,也可采用分类方法来达到设置状态栏的效果。
21 | *
22 | */
23 | self.navigationController.navigationBar.barStyle = UIBarStyleBlack;
24 | }
25 |
26 | @end
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-40.png
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-40@2x.png
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-40@3x.png
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-60@2x.png
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-60@3x.png
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-72.png
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-72@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-72@2x.png
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-76.png
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-76@2x.png
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-Small-50.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-Small-50.png
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-Small-50@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-Small-50@2x.png
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-Small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-Small.png
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-Small@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-Small@2x.png
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-Small@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon-Small@3x.png
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon.png
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/AppIcon.appiconset/Icon@2x.png
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default-568h@2x.png
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default.png
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default@2x.png
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad.png
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad@2x.png
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape.png
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape@2x.png
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar.png
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar@2x.png
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar.png
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar@2x.png
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/iPhone6-Plus-landscape@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/iPhone6-Plus-landscape@3x.png
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/iPhone6-Plus-portrait@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/iPhone6-Plus-portrait@3x.png
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/iPhone6-portrait@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Images.xcassets/LaunchImage.launchimage/iPhone6-portrait@2x.png
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | 微博@iOS程序犭袁
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UIRequiredDeviceCapabilities
26 |
27 | armv7
28 |
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UIViewControllerBasedStatusBarAppearance
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/Demo4_navigationController状态栏样式新的设置方法/微博@iOS程序犭袁/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // 微博@iOS程序犭袁
4 | //
5 | // Created by https://github.com/ChenYilong/iOS9AdaptationTips/ on 15/6/8.
6 | // Copyright (c) 2015年 http://weibo.com/luohanchenyilong/ . All rights reserved.
7 | //
8 |
9 | #import
10 | #import "AppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo.xcodeproj/project.xcworkspace/xcuserdata/chenyilong.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo.xcodeproj/project.xcworkspace/xcuserdata/chenyilong.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo.xcodeproj/xcuserdata/chenyilong.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | CYLCoreSpotlightSearchDemo.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 9ADFA35C1BB2DB5E002C09FD
16 |
17 | primary
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // CYLCoreSpotlightSearchDemo
4 | //
5 | // Created by 陈宜龙 on 15/9/23.
6 | // Copyright © 2015年 http://weibo.com/luohanchenyilong/ 微博@iOS程序犭袁. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 |
16 | @end
17 |
18 |
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon-40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon-40.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon-40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon-40@2x.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon-40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon-40@3x.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon-72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon-72.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon-72@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon-72@2x.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon-76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon-76.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon-Small-50.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon-Small-50.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon-Small-50@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon-Small-50@2x.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon-Small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon-Small.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon-Small@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon-Small@3x.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/AppIcon.appiconset/Icon@2x.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/LaunchImage.launchimage/Default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/LaunchImage.launchimage/Default.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/LaunchImage.launchimage/Default@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/LaunchImage.launchimage/Default@2x.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/LaunchImage.launchimage/Default~ipad.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/LaunchImage.launchimage/Default~ipad.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/LaunchImage.launchimage/Default~ipad@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/LaunchImage.launchimage/Default~ipad@2x.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/LaunchImage.launchimage/Default~ipad~landscape.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/LaunchImage.launchimage/Default~ipad~landscape.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/LaunchImage.launchimage/Default~ipad~landscape@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/LaunchImage.launchimage/Default~ipad~landscape@2x.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar@2x.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar@2x.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/LaunchImage.launchimage/iPhone6-Plus-landscape@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/LaunchImage.launchimage/iPhone6-Plus-landscape@3x.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/LaunchImage.launchimage/iPhone6-Plus-portrait@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/LaunchImage.launchimage/iPhone6-Plus-portrait@3x.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/LaunchImage.launchimage/iPhone6-portrait@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Assets.xcassets/LaunchImage.launchimage/iPhone6-portrait@2x.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UIMainStoryboardFile
26 | Main
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/Plist/data.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | title
7 | ios
8 | image_name
9 | 1.png
10 |
11 |
12 | title
13 | Sachin Tendulkar, IND
14 | image_name
15 | 2.png
16 |
17 |
18 | title
19 | Chris Gayle, WI
20 | image_name
21 | 3.png
22 |
23 |
24 | title
25 | Rahul Dravid, IND
26 | image_name
27 | 4.png
28 |
29 |
30 | title
31 | Adam Gilchrist, AUS
32 | image_name
33 | 5.png
34 |
35 |
36 | title
37 | Ricky Ponting, AUS
38 | image_name
39 | 6.png
40 |
41 |
42 | title
43 | Sourav Ganguly, IND
44 | image_name
45 | 7.png
46 |
47 |
48 | title
49 | Dale Steyn, SA
50 | image_name
51 | 8.png
52 |
53 |
54 | title
55 | Imran Khan, PAK
56 | image_name
57 | 9.png
58 |
59 |
60 | title
61 | Johnty Rhodes, SA
62 | image_name
63 | 10.png
64 |
65 |
66 | title
67 | Kapil Dev, IND
68 | image_name
69 | 11.png
70 |
71 |
72 | title
73 | Glenn Mcgrath, AUS
74 | image_name
75 | 12.png
76 |
77 |
78 | title
79 | Muttaiah Muralitharan, SL
80 | image_name
81 | 13.png
82 |
83 |
84 | title
85 | Anil Kumble, IND
86 | image_name
87 | 14.png
88 |
89 |
90 | title
91 | Steve Waugh, AUS
92 | image_name
93 | 15.png
94 |
95 |
96 | title
97 | Wasim Akram, PAK
98 | image_name
99 | 16.png
100 |
101 |
102 |
103 |
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/1.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/10.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/10.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/11.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/11.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/12.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/12.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/13.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/13.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/14.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/14.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/15.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/15.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/16.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/2.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/3.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/4.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/5.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/6.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/7.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/8.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/Resources/images/9.png
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // CYLCoreSpotlightSearchDemo
4 | //
5 | // Created by 陈宜龙 on 15/9/23.
6 | // Copyright © 2015年 http://weibo.com/luohanchenyilong/ 微博@iOS程序犭袁. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController : UIViewController
12 |
13 |
14 | @end
15 |
16 |
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // CYLCoreSpotlightSearchDemo
4 | //
5 | // Created by 陈宜龙 on 15/9/23.
6 | // Copyright © 2015年 http://weibo.com/luohanchenyilong/ 微博@iOS程序犭袁. All rights reserved.
7 | //
8 |
9 | #import "ViewController.h"
10 | @import CoreSpotlight;
11 | @import MobileCoreServices;
12 |
13 | @interface ViewController ()
14 |
15 | @end
16 |
17 | @implementation ViewController
18 |
19 | - (void)viewDidLoad {
20 | [super viewDidLoad];
21 | self.title = @"微博@iOS程序犭袁";
22 | [self spotLightIndexing];
23 | }
24 |
25 |
26 | /*
27 | *
28 | 复杂一点的设置方式 (详情请见: http://is.gd/B8q6eG )
29 | *
30 | */
31 | - (void)spotLightIndexing {
32 |
33 | NSString *path = [[NSBundle mainBundle] pathForResource:
34 | @"data" ofType:@"plist"];
35 | NSArray *plistArray = [[NSArray alloc] initWithContentsOfFile:path];
36 |
37 | [plistArray enumerateObjectsUsingBlock:^(NSDictionary * _Nonnull dict, NSUInteger idx, BOOL * _Nonnull stop) {
38 |
39 | CSSearchableItemAttributeSet *attributeSet = [[CSSearchableItemAttributeSet alloc] initWithItemContentType:(NSString *)kUTTypeImage];
40 |
41 | // Set properties that describe attributes of the item such as title, description, and image.
42 | NSString *title = [dict objectForKey:@"title"];
43 | attributeSet.title = title;
44 | attributeSet.contentDescription = [NSString stringWithFormat:@"%@的描述,跟微博@iOS程序犭袁 是好朋友",title];
45 | attributeSet.keywords = @[ title ];
46 |
47 | // Create an attribute set for an item
48 |
49 | UIImage *image = [UIImage imageNamed:[dict objectForKey:@"image_name"]];
50 | NSData *imageData = [NSData dataWithData:UIImagePNGRepresentation(image)];
51 | attributeSet.thumbnailData = imageData;
52 |
53 | // Create a searchable item, specifying its ID, associated domain, and the attribute set you created earlier.
54 |
55 | CSSearchableItem *item;
56 | NSString *identifier = [NSString stringWithFormat:@"%@",attributeSet.title];
57 |
58 | item = [[CSSearchableItem alloc] initWithUniqueIdentifier:identifier domainIdentifier:@"com.example.apple_sample.theapp.search" attributeSet:attributeSet];
59 |
60 | // Index the item.
61 |
62 | [[CSSearchableIndex defaultSearchableIndex] indexSearchableItems:@[item] completionHandler: ^(NSError * __nullable error) {
63 | NSLog(@"Search item indexed");
64 |
65 | }];
66 |
67 | }];
68 | }
69 | @end
70 |
--------------------------------------------------------------------------------
/Demo5_CoreSpotlightSearch/CYLCoreSpotlightSearchDemo/CYLCoreSpotlightSearchDemo/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // CYLCoreSpotlightSearchDemo
4 | //
5 | // Created by 陈宜龙 on 15/9/23.
6 | // Copyright © 2015年 http://weibo.com/luohanchenyilong/ 微博@iOS程序犭袁. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "AppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs.xcodeproj/project.xcworkspace/xcshareddata/SearchAPIs.xccheckout:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDESourceControlProjectFavoriteDictionaryKey
6 |
7 | IDESourceControlProjectIdentifier
8 | 6895D5CB-57A1-41AB-977F-3D6DE577E626
9 | IDESourceControlProjectName
10 | SearchAPIs
11 | IDESourceControlProjectOriginsDictionary
12 |
13 | F53C35F7A7FF2EE4D47689817655F7B6984B16FB
14 | https://github.com/BenBeng/iOS9-day-by-day-oc.git
15 |
16 | IDESourceControlProjectPath
17 | 01-Search-APIs/SearchAPIs.xcodeproj
18 | IDESourceControlProjectRelativeInstallPathDictionary
19 |
20 | F53C35F7A7FF2EE4D47689817655F7B6984B16FB
21 | ../../..
22 |
23 | IDESourceControlProjectURL
24 | https://github.com/BenBeng/iOS9-day-by-day-oc.git
25 | IDESourceControlProjectVersion
26 | 111
27 | IDESourceControlProjectWCCIdentifier
28 | F53C35F7A7FF2EE4D47689817655F7B6984B16FB
29 | IDESourceControlProjectWCConfigurations
30 |
31 |
32 | IDESourceControlRepositoryExtensionIdentifierKey
33 | public.vcs.git
34 | IDESourceControlWCCIdentifierKey
35 | F53C35F7A7FF2EE4D47689817655F7B6984B16FB
36 | IDESourceControlWCCName
37 | iOS9-day-by-day-oc
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs.xcodeproj/project.xcworkspace/xcuserdata/chenyilong.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs.xcodeproj/project.xcworkspace/xcuserdata/chenyilong.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs.xcodeproj/xcuserdata/chenyilong.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | SearchAPIs.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | B56137F61B6B6C6500D34D3B
16 |
17 | primary
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // SearchAPIs
4 | //
5 | // Created by HeBinghua on 15/7/31.
6 | // Copyright © 2015年 Ben. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 |
16 | @end
17 |
18 |
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // SearchAPIs
4 | //
5 | // Created by HeBinghua on 15/7/31.
6 | // Copyright © 2015年 Ben. All rights reserved.
7 | //
8 |
9 | #import "AppDelegate.h"
10 |
11 | #import "FriendTableViewController.h"
12 |
13 | @interface AppDelegate ()
14 |
15 | @end
16 |
17 | @implementation AppDelegate
18 |
19 |
20 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
21 | // Override point for customization after application launch.
22 | return YES;
23 | }
24 |
25 | - (BOOL)application:(nonnull UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity restorationHandler:(nonnull void (^)(NSArray * _Nullable))restorationHandler {
26 |
27 | NSString *friendID = userActivity.userInfo[@"kCSSearchableItemActivityIdentifier"];
28 |
29 | UINavigationController *navigationController = (UINavigationController *)self.window.rootViewController;
30 | [navigationController popToRootViewControllerAnimated:NO];
31 | FriendTableViewController *friendTableViewController = navigationController.viewControllers.firstObject;
32 | [friendTableViewController showFriendWithID:friendID];
33 |
34 | return YES;
35 | }
36 |
37 | @end
38 |
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon-40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon-40.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon-40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon-40@2x.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon-40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon-40@3x.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon-72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon-72.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon-72@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon-72@2x.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon-76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon-76.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon-Small-50.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon-Small-50.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon-Small-50@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon-Small-50@2x.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon-Small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon-Small.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon-Small@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon-Small@3x.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/AppIcon.appiconset/Icon@2x.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/LaunchImage.launchimage/Default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/LaunchImage.launchimage/Default.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/LaunchImage.launchimage/Default@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/LaunchImage.launchimage/Default@2x.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/LaunchImage.launchimage/Default~ipad.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/LaunchImage.launchimage/Default~ipad.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/LaunchImage.launchimage/Default~ipad@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/LaunchImage.launchimage/Default~ipad@2x.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/LaunchImage.launchimage/Default~ipad~landscape.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/LaunchImage.launchimage/Default~ipad~landscape.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/LaunchImage.launchimage/Default~ipad~landscape@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/LaunchImage.launchimage/Default~ipad~landscape@2x.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar@2x.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar@2x.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/LaunchImage.launchimage/iPhone6-Plus-landscape@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/LaunchImage.launchimage/iPhone6-Plus-landscape@3x.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/LaunchImage.launchimage/iPhone6-Plus-portrait@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/LaunchImage.launchimage/iPhone6-Plus-portrait@3x.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/LaunchImage.launchimage/iPhone6-portrait@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/LaunchImage.launchimage/iPhone6-portrait@2x.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/ben.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "ben.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/ben.imageset/ben.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/ben.imageset/ben.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/ios.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "ios.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/ios.imageset/ios.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/ios.imageset/ios.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/jane.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "jane.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/jane.imageset/jane.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/jane.imageset/jane.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/pete.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "pete.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/pete.imageset/pete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/pete.imageset/pete.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/ray.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "ray.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/ray.imageset/ray.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/ray.imageset/ray.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/tom.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "tom.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/tom.imageset/tom.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenYilong/iOS9AdaptationTips/33a878221d0a52f12b9051d0b40c85c02bb7dfa2/Demo6_CoreSpotlightSearch_02/SearchAPIs/Assets.xcassets/tom.imageset/tom.png
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Datasource.h:
--------------------------------------------------------------------------------
1 | //
2 | // Datasource.h
3 | // SearchAPIs
4 | //
5 | // Created by HeBinghua on 15/7/31.
6 | // Copyright © 2015年 Ben. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @class Person;
12 |
13 | @interface Datasource : NSObject
14 |
15 | NS_ASSUME_NONNULL_BEGIN
16 |
17 | @property (nonatomic, strong) NSArray *people;
18 |
19 | - (nullable Person *)friendFromID:(NSString *)id;
20 | - (void)savePeopleToIndex;
21 |
22 | NS_ASSUME_NONNULL_END
23 |
24 | @end
25 |
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Datasource.m:
--------------------------------------------------------------------------------
1 | //
2 | // Datasource.m
3 | // SearchAPIs
4 | //
5 | // Created by HeBinghua on 15/7/31.
6 | // Copyright © 2015年 Ben. All rights reserved.
7 | //
8 |
9 | #import "Datasource.h"
10 | #import "Person.h"
11 |
12 | @import CoreSpotlight;
13 |
14 | @implementation Datasource
15 |
16 | - (instancetype)init {
17 | self = [super init];
18 | if (self) {
19 | Person *iOS = [[Person alloc]init];
20 | iOS.name = @"iOS";
21 | iOS.id = @"1";
22 | iOS.image = [UIImage imageNamed:@"ios"];
23 |
24 | Person *ben = [[Person alloc]init];
25 | ben.name = @"Ben";
26 | ben.id = @"2";
27 | ben.image = [UIImage imageNamed:@"ben"];
28 |
29 | Person *jane = [[Person alloc]init];
30 | jane.name = @"Jane";
31 | jane.id = @"3";
32 | jane.image = [UIImage imageNamed:@"jane"];
33 |
34 | Person *pete = [[Person alloc]init];
35 | pete.name = @"Pete";
36 | pete.id = @"4";
37 | pete.image = [UIImage imageNamed:@"pete"];
38 |
39 | Person *ray = [[Person alloc]init];
40 | ray.name = @"Ray";
41 | ray.id = @"5";
42 | ray.image = [UIImage imageNamed:@"ray"];
43 |
44 | Person *tom = [[Person alloc]init];
45 | tom.name = @"Tom";
46 | tom.id = @"6";
47 | tom.image = [UIImage imageNamed:@"tom"];
48 |
49 | _people = @[iOS, ben, jane, pete, ray, tom];
50 | }
51 |
52 | return self;
53 | }
54 |
55 | - (nullable Person *)friendFromID:(NSString *)id {
56 | for(Person *person in self.people) {
57 | if ([person.id isEqualToString:id]) {
58 | return person;
59 | }
60 | }
61 | return nil;
62 | }
63 |
64 | - (void)savePeopleToIndex {
65 | NSMutableArray *searchableItems = [NSMutableArray array];
66 | for (Person *person in self.people) {
67 | CSSearchableItemAttributeSet *attributedSet = [[CSSearchableItemAttributeSet alloc]initWithItemContentType:@"image"];
68 | attributedSet.title = person.name;
69 | attributedSet.contentDescription = [NSString stringWithFormat:@"This is an entry all about the interesting person called %@",person.name];
70 | attributedSet.thumbnailData = UIImagePNGRepresentation(person.image);
71 |
72 | CSSearchableItem *item = [[CSSearchableItem alloc]initWithUniqueIdentifier:person.id domainIdentifier:@"com.ios9daybyday.SearchAPIs.people" attributeSet:attributedSet];
73 | [searchableItems addObject:item];
74 | }
75 |
76 | [[CSSearchableIndex defaultSearchableIndex] indexSearchableItems:searchableItems completionHandler:^(NSError * _Nullable error) {
77 | if (error != nil) {
78 | NSLog(@"%@",error.localizedDescription);
79 | }
80 | }];
81 | }
82 |
83 | @end
84 |
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/FriendTableViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // FriendTableViewController.h
3 | // SearchAPIs
4 | //
5 | // Created by HeBinghua on 15/7/31.
6 | // Copyright © 2015年 Ben. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface FriendTableViewController : UITableViewController
12 |
13 | - (void)showFriendWithID:(NSString *)ID;
14 | @end
15 |
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/FriendTableViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // FriendTableViewController.m
3 | // SearchAPIs
4 | //
5 | // Created by HeBinghua on 15/7/31.
6 | // Copyright © 2015年 Ben. All rights reserved.
7 | //
8 |
9 | #import "FriendTableViewController.h"
10 | #import "FriendViewController.h"
11 |
12 | #import "Datasource.h"
13 | #import "Person.h"
14 |
15 | @interface FriendTableViewController ()
16 |
17 | @property (nonatomic, strong) Datasource *datasource;
18 | @property (nonatomic, strong) Person *lastSelectedFriend;
19 |
20 | @end
21 |
22 | @implementation FriendTableViewController
23 |
24 | - (void)viewDidLoad {
25 | [super viewDidLoad];
26 |
27 | _datasource = [[Datasource alloc]init];
28 |
29 | [self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:@"Cell"];
30 | [self.datasource savePeopleToIndex];
31 | }
32 |
33 | - (void)didReceiveMemoryWarning {
34 | [super didReceiveMemoryWarning];
35 | // Dispose of any resources that can be recreated.
36 | }
37 |
38 | #pragma mark - Table view
39 |
40 | - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
41 | return self.datasource.people.count;
42 | }
43 |
44 | - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
45 | UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell" forIndexPath:indexPath];
46 |
47 | Person *person = self.datasource.people[indexPath.row];
48 | cell.textLabel.text = person.name;
49 |
50 | return cell;
51 | }
52 |
53 | - (void)tableView:(nonnull UITableView *)tableView didSelectRowAtIndexPath:(nonnull NSIndexPath *)indexPath {
54 | NSInteger selectedIndex = tableView.indexPathForSelectedRow.row;
55 | self.lastSelectedFriend = self.datasource.people[selectedIndex];
56 |
57 | [self performSegueWithIdentifier:@"showFriend" sender:self];
58 | }
59 | #pragma mark - Navigation
60 |
61 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
62 | FriendViewController *destination = segue.destinationViewController;
63 | destination.person = self.lastSelectedFriend;
64 | }
65 |
66 | - (void)showFriendWithID:(NSString *)ID {
67 | if (ID.length == 0) {
68 | return;
69 | }
70 |
71 | self.lastSelectedFriend = [self.datasource friendFromID:ID];
72 | [self performSegueWithIdentifier:@"showFriend" sender:self];
73 | }
74 |
75 |
76 | @end
77 |
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/FriendViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // FriendViewController.h
3 | // SearchAPIs
4 | //
5 | // Created by HeBinghua on 15/7/31.
6 | // Copyright © 2015年 Ben. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @class Person;
12 |
13 | @interface FriendViewController : UIViewController
14 |
15 | @property (nonatomic, strong, readwrite) Person *person;
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/FriendViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // FriendViewController.m
3 | // SearchAPIs
4 | //
5 | // Created by HeBinghua on 15/7/31.
6 | // Copyright © 2015年 Ben. All rights reserved.
7 | //
8 |
9 | #import "FriendViewController.h"
10 |
11 | #import "Person.h"
12 |
13 | @interface FriendViewController ()
14 |
15 | @property (weak, nonatomic) IBOutlet UILabel *nameLabel;
16 | @property (weak, nonatomic) IBOutlet UIImageView *imageView;
17 |
18 | @end
19 |
20 | @implementation FriendViewController
21 |
22 | - (void)viewDidLoad {
23 | [super viewDidLoad];
24 | // Do any additional setup after loading the view.
25 | self.nameLabel.text = self.person.name;
26 | self.imageView.image = self.person.image;
27 | }
28 |
29 | - (void)didReceiveMemoryWarning {
30 | [super didReceiveMemoryWarning];
31 | // Dispose of any resources that can be recreated.
32 | }
33 |
34 |
35 | @end
36 |
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UIMainStoryboardFile
26 | Main
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Person.h:
--------------------------------------------------------------------------------
1 | //
2 | // Person.h
3 | // SearchAPIs
4 | //
5 | // Created by HeBinghua on 15/7/31.
6 | // Copyright © 2015年 Ben. All rights reserved.
7 | //
8 |
9 | #import
10 | @import UIKit;
11 |
12 | @interface Person : NSObject
13 |
14 | @property (nonatomic, copy) NSString *name;
15 | @property (nonatomic, copy) NSString *id;
16 | @property (nonatomic, strong) UIImage *image;
17 |
18 | @end
19 |
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/Person.m:
--------------------------------------------------------------------------------
1 | //
2 | // Person.m
3 | // SearchAPIs
4 | //
5 | // Created by HeBinghua on 15/7/31.
6 | // Copyright © 2015年 Ben. All rights reserved.
7 | //
8 |
9 | #import "Person.h"
10 |
11 | @implementation Person
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/Demo6_CoreSpotlightSearch_02/SearchAPIs/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // SearchAPIs
4 | //
5 | // Created by HeBinghua on 15/7/31.
6 | // Copyright © 2015年 Ben. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "AppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------