摘要:
gh 阅读全文
摘要:
灰色背景的类只在OS X中支持。NSObject// Value ObjectsNSAffineTransformNSCalendarNSCacheNSDataNSMutableDataNSPurgeableDataNSDateComponentsNSDecimalNumberHandlerNSLocaleNSNullNSTimeZoneNSValueNSNumberNSDecimalNumberNSValueTransformer// XMLNSXMLParser// StringsNSCharacterSetNSMutableCharacterSetNSStringNSMutableStr 阅读全文
摘要:
NSObjectUIAccelerationUIAccelerometerUIAccessibilityElementUIBarItemUIBarButtonItemUITabBarItemUIBezierPathUIColorUIDeviceUIDocumentInteractionControllerUIEventUIFontUIGestureRecognizerUILongPressGestureRecognizerUIPanGestureRecognizerUIPinchGestureRecognizerUIRotationGestureRecognizerUISwipeGesture 阅读全文
摘要:
应用程序和多任务用户界面DataGlobalization & LocalizationConcurrencyCommunicationMediaGraphics & Animations 阅读全文
摘要:
Cocoa是OS X和iOS操作系统的应用程序环境。它由面向对象类库、运行时和集成开发环境组成。The Cocoa EnvironmentCocoa是一个面向对象框架集,为OS X和iOS应用程序提供了一个运行时环境。Cocoa是OS X上一个出众的应用程序环境,并且是iOS上唯一的应用程序环境。Introducing Cocoa与所有应用程序环境一样,Cocoa有运行时和开发两个方面。在运行时方面,Cocoa应用程序展示用户界面,并且与操作系统其它可视化组件紧密集成;如在OS X中,这些应用有Finder,Dock及其它应用程序。但是,程序员更感兴趣的是开发方面。Cocoa提供了一个类库用于 阅读全文
摘要:
原文:https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/CocoaFundamentals/Introduction/Introduction.html“What Is Cocoa?” introduces Cocoa from a functional and broadly architectural perspective, describing its features, frameworks, and development environment.从功能性和大体架构的角度描述Cocoa的各种 阅读全文
摘要:
Creating Navigation Controllers–initWithRootViewController:–initWithNavigationBarClass:toolbarClass:Accessing Items on the Navigation StacktopViewControllerpropertyvisibleViewControllerpropertyviewControllersproperty–setViewControllers:animated:Pushing and Popping Stack Items–pushViewController:anim 阅读全文
摘要:
iOS程序是基于MVC设计模式的,UIViewController是Controller的基类,一般我们通过继承这个类来实现自己的Controller,框架为我们提供了一些定义好的子类,如UINavigationController,UITabbarControllerCreating a View Controller Using Nib Files–initWithNibName:bundle:nibNamepropertynibBundlepropertyUsing a Storyboard–shouldPerformSegueWithIdentifier:sender:–perform 阅读全文
摘要:
UIDatePicker,日期选取器typedef NS_ENUM(NSInteger, UIDatePickerMode) { UIDatePickerModeTime, // Displays hour, minute, and optionally AM/PM designation depending on the locale setting (e.g. 6 | 53 | PM) UIDatePickerModeDate, // Displays month, day, and year depending on the local... 阅读全文
摘要:
UIPickerView,使用UIPickerViewDataSource来配置数据,UIPickerViewDelegate来控制内容。@interface UIPickerView : UIView @property(nonatomic,assign) id dataSource; // default is nil. weak reference@property(nonatomic,assign) id delegate; // default is nil. weak reference@property(nona... 阅读全文