一、概念
二、代碼
/*
Getting Started 新手指引
>>>Guides 指南(一般都是看這個,如何去學習)
>>>Refaerence 參考資料 (一般都是看這個)
Release Notes 發布說明
SampleCode 示例代碼
TechnicalNotes 技術說明
TechnicalQ&A 常見技術問答
Video WWDC的視頻
*/
#pragma mark - 代碼
#import <Foundation/Foundation.h>
#pragma mark 類
#pragma mark - main函數
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
學習指南
實例代碼
*/
/*
官方文檔搜索的時候
熱門點擊
API Reference API使用參考
SDK Guides 學習指南
Sample Code 實例代碼
*/
/*
1.start Developing iOS Apps Today --- 閱讀
馬上著手開發iOS應用程序,建立基本iOS開發概覽
2.iOS Technology Overview
iOS技術概覽,閱讀這個文檔的目的 和 檢測標準是 ,
遇到具體問題,知道應該去看哪方面的文檔
3.iOS Humen Interface Guidelines
iOS 人機交互指南,閱讀這個文檔的目的 和檢測標準是 ,
看到任何一個APP,你可以知道它的任何一個UI是系統空間,還是自自定義控件,他的層次關系等等.
4.Programming With Objective-C --- 閱讀
學習OC基礎語法,閱讀這個文檔的目的 和檢測標準是 ,
看得懂基本的Objective-C代碼,方便后面的學習 和閱讀各種示例代碼
5.App Programming Guide for iOS
iOS 應用程序編程指南,介紹的就是開發一個APP的完整流程,包含APP的聲明周期,休眠,激活等等
閱讀這個文檔的目的 和 檢測標準是,
了解全部流程 和 很多細節問題
6.View Programming Guide for iOS
7.View Controller Programming Guide for iOS
閱讀 這兩個文檔的目的 和檢測標準是, 深刻理解 什么是view,什么是View Controller,理解什么情況用View,什么情況用ViewController
*/
return 0;
}
通過option鍵 + 點擊
image.png
雙擊方法
image.png
官方文檔搜索注意
![Uploading image_934796.png . . .]