Skip to content

chengliangbuct/iOS-Playground

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Playground

Demos for iOS development.

DemoALAssetsLibrary

AssetsLibrary框架的简单demo, AssetsLibrary提供了访问iOS设备的照片应用中的所有照片和视频的接口. 不过, Apple后来推出来PhotoKit, 功能更加强大, 用于取代AssetsLibrary. 请参考博客:

DemoASIHTTPRequest

ASIHttpRequest是一个Objective-C的网络请求库, 不过已经停止维护. 现在最流行的网络请求库是AFNetworking. Swift语言有对应的Alamofire.

DemoAddChildViewController

DemoAlertController

UIAlertController用于替代UIAlertView, 包含Alert和Action两种样式

DemoAnimation

iOS的动画Demo, 包含UIView Animation, Layout Animation, KeyFrame Animation, Core Animation, Pop Animation. 请参考博客:

DemoAsyncDisplayKit

AsyncDisplayKit是Facebook发布的iOS UI框架, 用于实现异步UI的渲染.

DemoBatteryTestAppOC

iOS设备的电量汇报小工具, 定时向服务端汇报设备电量. 服务端基于Django+MongoDB, 代码MobileDeviceInfoMonitor.

请参考博客:

DemoBlock

请参考博客:

DemoBlurImage

请参考博客:

DemoCAEmitterLayer

请参考博客:

DemoCAShapeLayer

DemoCSSwiftExtension

主要介绍了如何在CocoaPods上发布自己的项目. 请参考博客:

DemoCharts

DemoCollectionView

关于UICollectionView, 布局, 及其优化的demo, 待补充. 请参考 DemoUICollectionView

DemoContainerView

DemoCoreData-Realm

介绍了跨平台的移动端数据库Realm, 包含CoreData与Realm的对比, 以及公司内部分享的Keynote.

DemoCoreGraphics

请参考博客:

DemoCoreMotion

DemoCornerRadius

为UIView添加圆角.

DemoDataPersistence

iOS开发中的一些持久化技术的简单Demo, 包括Sandbox, NSUserDefaults, NSKeyedArchiver, CoreData, MagicalRecord, SQLite, FMDB, Realm, Keychain, iCloud. 待补充完整.

DemoFMDB

FMDB是非常著名的SQLite第三方类库, 对SQLite进行了非常强大的封装.

DemoFabric

使用Fabric崩溃收集平台的demo.

DemoFlurry

使用Flurry统计平台的demo.

DemoGestureRecognizer

包含自定义手势, 可用于实现屏幕手势锁等.

DemoGifWebView

使用UIWebView来展示gif.

DemoGoogleAnalytics

使用GoogleAnalytics统计平台的demo.

DemoHttpRequest

请参考博客:

DemoImageViewAnimation

请参考博客:

DemoKVC

DemoKVO

DemoKeyWindow

请参考博客:

DemoLBS

请参考博客:

DemoLayout

请参考博客:

DemoLoadViewForNib

请参考博客:

DemoLocalNotification

请参考博客:

DemoMPVolum

请参考博客:

DemoMagicalRecord

MagicalRecord是基于Objective-C的CoreData封装类库, 使用非常方便.

DemoMasonry

Masonry是基于Objective-C的自动布局Auto Layout框架.

DemoMaterial

DemoMixpanel

请参考博客:

DemoMultiThread

请参考博客:

DemoNSAssert

请参考博客:

DemoNSCache

DemoNSLinguisticTagger

NSLinguisticTagger可以将自然语言的字符串标记为单词、确定词性和词根、划分出人名地名和组织名称、告诉你字符串使用的语言和语系.

DemoNSObjectRelatedAll

请参考博客:

DemoNSTimer

请参考博客:

DemoNSUserDefaults

NSUserDefaults可用于持久化一些APP配置信息或用户保存的数据, 再次启动APP或重启设备后这些数据依然存在.

DemoNavigationController

请参考博客:

DemoNavigationItemAvatar

添加导航栏的头像

DemoOpenURL

请参考博客:

DemoPNChartSwift

PNChart可用于绘制一些图表.

DemoPageViewController

DemoPhotoKit

PhotoKit框架的简单demo, PhotoKit提供了访问iOS设备的照片应用中的所有照片和视频的接口. 功能更加强大, 用于取代AssetsLibrary. 请参考博客:

DemoReachability

Reachability可用于测试网络连接情况, 也可以使用AFNetworking.

DemoRealm

介绍了跨平台的移动端数据库Realm. 请参考博客:

DemoRestKit

请参考博客:

DemoRuntime

一些Runtime的Demo及使用场景. 请参考博客:

DemoSQLite3

SQLite3数据库的小demo, 待完善.

DemoSandBox

请参考博客:

DemoScrollViewPageControl

请参考博客:

DemoShimmer

请参考博客:

DemoSlider

请参考博客:

DemoSnapKit

SnapKit是基于Swift语言的自动布局Auto Layout框架, 类似于Masonry.

DemoSocial

Social分享框架的demo.

DemoSoundRecordPlay

DemoSwift

一些Swift的小demo.

DemoTelCall

DemoTestCarrier

请参考博客:

DemoTimeline

使用ISTimeline的Demo.

DemoUIActivityViewController

DemoUIButtonBackgroundColor

请参考博客:

DemoUIGestureRecognizer

关于iOS中一些手势的demo.

DemoUIImagePicker

UIImagePicker用于启动系统相机拍照或从系统相册中选取照片.

DemoUILabel

DemoUIScrollViewZoomScale

DemoUISlider

请参考博客:

DemoUITableView

关于UITableView及其优化技巧的一些demo, 待补充.

DemoUITextView

DemoUIViewControllerRelatedAll

DemoUIViewRelatedAll

DemoUIVisualEffect

请参考博客:

DemoUnitTest

请参考博客:

DemoXXNibBridge

DemoYYText

DemoiCarousel

iCarousel, 现在可用UICollectionView来实现.

DesignPattern

OCPlayground

DBFM

简单的 仿豆瓣FM iOS客户端.

SinaNews

简单的 仿新浪新闻 iOS客户端

ZhihuAPP

简单的 仿知乎 iOS客户端

About

Demos for iOS development.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 47.7%
  • C++ 33.5%
  • Objective-C++ 8.5%
  • Swift 7.6%
  • Shell 2.3%
  • C 0.4%