一、概念
二、代碼
/*
Getting Started 新手指引
>>>Guides 指南(一般都是看這個(gè),如何去學(xué)習(xí))
>>>Refaerence 參考資料 (一般都是看這個(gè))
Release Notes 發(fā)布說(shuō)明
SampleCode 示例代碼
TechnicalNotes 技術(shù)說(shuō)明
TechnicalQ&A 常見(jiàn)技術(shù)問(wèn)答
Video WWDC的視頻
*/
#pragma mark - 代碼
#import <Foundation/Foundation.h>
#pragma mark 類
#pragma mark - main函數(shù)
int main(int argc, const char * argv[])
{
/*
NSString
@interface NSString : NSObject <NSCopying, NSMutableCopying, NSSecureCoding>
Description
The NSString class and its mutable subclass, NSMutableString, provide an extensive set of APIs for working with strings, including methods for comparing, searching, and modifying strings. NSString objects are used extensively throughout Foundation and other Cocoa frameworks, serving as the basis for all textual and linguistic functionality on the platform.
NSString is “toll-free bridged” with its Core Foundation counterpart, CFStringRef. See “Toll-Free Bridging” for more information.
Availability iOS (2.0 and later), macOS (10.0 and later), tvOS (9.0 and later), watchOS (2.0 and later)
*/
[NSString stringWithFormat:<#(nonnull NSString *), ...#>];
/*
描述信息 description
可用性 Availability
聲明位置 declared in
使用參考 Reference
學(xué)習(xí)指南
實(shí)例代碼
*/
/*
官方文檔搜索的時(shí)候
熱門點(diǎn)擊
API Reference API使用參考
SDK Guides 學(xué)習(xí)指南
Sample Code 實(shí)例代碼
*/
/*
1.start Developing iOS Apps Today --- 閱讀
馬上著手開(kāi)發(fā)iOS應(yīng)用程序,建立基本iOS開(kāi)發(fā)概覽
2.iOS Technology Overview
iOS技術(shù)概覽,閱讀這個(gè)文檔的目的 和 檢測(cè)標(biāo)準(zhǔn)是 ,
遇到具體問(wèn)題,知道應(yīng)該去看哪方面的文檔
3.iOS Humen Interface Guidelines
iOS 人機(jī)交互指南,閱讀這個(gè)文檔的目的 和檢測(cè)標(biāo)準(zhǔn)是 ,
看到任何一個(gè)APP,你可以知道它的任何一個(gè)UI是系統(tǒng)空間,還是自自定義控件,他的層次關(guān)系等等.
4.Programming With Objective-C --- 閱讀
學(xué)習(xí)OC基礎(chǔ)語(yǔ)法,閱讀這個(gè)文檔的目的 和檢測(cè)標(biāo)準(zhǔn)是 ,
看得懂基本的Objective-C代碼,方便后面的學(xué)習(xí) 和閱讀各種示例代碼
5.App Programming Guide for iOS
iOS 應(yīng)用程序編程指南,介紹的就是開(kāi)發(fā)一個(gè)APP的完整流程,包含APP的聲明周期,休眠,激活等等
閱讀這個(gè)文檔的目的 和 檢測(cè)標(biāo)準(zhǔn)是,
了解全部流程 和 很多細(xì)節(jié)問(wèn)題
6.View Programming Guide for iOS
7.View Controller Programming Guide for iOS
閱讀 這兩個(gè)文檔的目的 和檢測(cè)標(biāo)準(zhǔn)是, 深刻理解 什么是view,什么是View Controller,理解什么情況用View,什么情況用ViewController
*/
return 0;
}
通過(guò)option鍵 + 點(diǎn)擊

image.png
雙擊方法

image.png
官方文檔搜索注意
![Uploading image_934796.png . . .]