x code 編譯器經常使用英文速記

interfaceios

類定義git

implementation編程

類實現xcode

master-detail Applicationapp

主應用程序框架

page-based Applicationdom

基於頁面的應用ide

Single View Application工具

單視圖中的應用性能

Tabbed Application

標籤中的應用

cocoa Touch Framework

Cocoa Touch框架

Cocoa Touch Static library

Cocoa Touch靜態庫

In- App purchase Empty

應用程序購買

Command Line Tool

命令行工具

bundle Xpc Service

XPC服務

system plug-in

系統插件

create git repository , source control

建立存儲庫源碼控制

build

創建

category/ protocol /extension

類別/協議/擴展

block

property  類屬性getset方法聲明

synthesize 類屬性getset方法實現

 developer 開發者模板

 

developer

開發商

description

描述

this template creates a command-line tool

該模板建立一個命令行工具

category  分類

this template creates a command-line tool
該模板建立一個命令行工具
category
類別
move to trash
移動到垃圾箱
remove reference
移除參考

經典錯誤
unrecognized selector sent to instance
不能識別消息發送的對象

sel 就是消息 對方法的包裝
exc_bad_access 訪問壞內存 已經被回收不能被訪問的內存 野指針錯誤
nil 零

4-26
xcode項目名詞解釋
unused variable
未使用的變量
build settings
構建設置
build phases
建設階段
build rules
創建規則
refactor
重構
Automatic Reference Counting
自動引用計數
strip linked product
帶掛鉤的產品

15-04-29

variable is not assignable (missing_block type specifier)

變量是不可轉讓missing_block類型說明符

Protocol

協議

referenced from

引用

No visible declares the selector

沒有可見的聲明選擇器

rect origin

正確的起源

Mutable

可變

 

content

內容

mutable

可變

append

追加

characters

字符

Make Range

使範圍

 5-4

 

No supported iOS devices are available. Connect an iOS device to run your application or choose an iOS simulator as the destination.

不支持iOS設備是可用的。鏈接的iOS設備運行應用程序,或選擇一個iOS模擬器做爲目標。

Unable to boot the iOS Simulator.

沒法啓動的iOS模擬器。

deployment target

部署目標

predictive

預測

plain

平原

Controller

控制器

weak

nonatomic

無原子

inferred

推斷

freeform

自由曲面

Timed out waiting for device to boot

超時等待設備啓動

Unable to boot the iOS Simulator.

沒法啓動的iOS模擬器

Making the AppController @interface

App界面

We’ll use the Interface Builder application to lay out the window’s contents and hook up variousconnections between AppController and the user interface controls. Interface Builderis also used to lay out iPhone applications, so time in Interface Builder is well spent no matterwhich platform you’ll end up programming for. We’ll add stuff to the AppControllerclass, and then Interface Builder will notice our additions and let us build the user interface.First, we’ll set up the header file for AppController:

咱們將使用Interface Builder應用奠基了窗口的內容,把App和用戶界面控件之間的variousconnections。接口builderis也用來奠基了iPhone的應用,因此在界面生成器的時間用得不管你最終會編程平臺。咱們要添加的東西的appcontrollerclass,而後界面生成器會注意到咱們的補充,讓咱們構建用戶界面。首先,咱們將創建App的頭文件:

There are two new quasi- keywords in there: IBOutlet and IBAction. These are actually just#defines provided by the AppKit. IBOutlet is defined to be nothing, so it disappears whenwe compile. IBAction is defined to be void, which means the return type of the methodsdeclared in AppController will be void (that is, returning nothing).If IBOutlet and IBAction don’t do anything, why are they even there? The answer is thatthey’re not there for the compiler: IBOutlet and IBAction are actually flags to InterfaceBuilder, as well as the humans who read the code. By looking for IBOutlet and IBAction,Interface Builder learns that AppController objects have two instance variables that canbe connected to stuff, and AppController provides two methods that can be the target ofbutton clicks (and other user interface actions). We’ll talk about how this works in a little bit.In Interface Builder, we’ll connect the textField instance variable to an NSTextFieldobject. This text field is where users will type strings to be converted, which is the typicalrole for an NSTextField.resultsField will be connected to a read- only NSTextField. When in read- only mode,an NSTextField acts like a text label. This text label is where the uppercase or lowercaseversion of the string will be displayed.

有兩個新的準關鍵詞有:IBOutlet和ibaction。這些實際上只是#定義由AppKit提供。IBOutlet定義是什麼,因此它消失在編譯。ibaction定義是無效的,這意味着在App的methodsdeclared返回類型將是無效的(即,返回任何值)。若是ibaction IBOutlet和什麼都不作,他們爲何在那裏?答案是他們沒有編譯器:IBOutlet和ibaction實際上標誌interfacebuilder,以及人類閱讀代碼。經過尋找IBOutlet和ibaction,Interface Builder知道App對象有兩個實例變量,能夠鏈接到的東西,和App提供了兩種方法,能夠在目標ofbutton點擊(和其餘用戶界面操做)。咱們將談論如何工做的一點。在Interface Builder中,咱們鏈接的實例變量的nstextfieldobject。此文本字段是用戶類型的字符串進行轉換,這是一個nstextfield.resultsfield的typicalrole將會鏈接到一隻nstextfield讀。在讀模式,一個nstextfield像文本標籤。本文標籤是字符串的大寫或lowercaseversion將顯示。

2015-05-16

 

instancetype 替換id

show the code snippet library

顯示代碼庫

Developer

開發商

completion

完成

shortcut

快捷方式

scopes

範圍

func

功能

summary

總結

label will be created if necessary

標籤將被建立,若是必要的話

and the current style supports a detail label)

與目前的方式支持了標籤)

15-06-12

Include any system framework and library headers here that should be included in all compilation units.
包括任何系統框架和庫頭文件,應包括在全部的編譯單元。
// You will also need to set the Prefix Header build setting of one or more of your targets to reference this file.
/ /你還須要設置前綴標題創建你的一個或多個對象引用這個文件設置。
Attempting to badge the application icon but haven't received permission from the user to badge the application
試圖徽章應用程序圖標,但沒有收到用戶權限徽章的應用
set to 0 to hide. default is 0. In iOS 8.0 and later, your application must register for user notifications using -[UIApplication registerUserNotificationSettings:] before being able to set the icon badge.
設置爲0來隱藏。默認值是0。在iOS 8以後,應用程序必須註冊用戶通知使用UIApplication registerusernotificationsettings [:]才能夠設置圖標的徽章。
Override point for customization after application launch.
覆蓋點定製以後推出的應用。

 

6-15

Because they play such an important role in your app, view controllers are at the center of almost everything you do. The UIViewController class defines the methods and properties for managing your views, handling events, transitioning from one view controller to another, and coordinating with other parts of your app. You subclass UIViewController (or one of its subclasses) and add the custom code you need to implement your app’s behavior.
由於他們在你的應用中扮演着如此重要的角色,視圖控制器在中心幾乎你所作的一切。UIViewController類的定義方法和屬性來管理您的意見,處理事件,從一個視圖控制器轉換到另外一個,並協調與您的應用程序的其餘部分。你的子窗口(或它的一個子類)和添加自定義代碼,你須要實現你的應用程序的行爲。
There are two types of view controllers:
有兩種類型的視圖控制器:
Content view controllers manage a discrete piece of your app’s content and are the main type of view controller that you create.
內容視圖控制器管理你的應用程序的內容離散塊和視圖控制器的主要類型,你創造。
Container view controllers collect information from other view controllers (known as child view controllers) and present it in a way that facilitates navigation or presents the content of those view controllers differently.
容器視圖控制器從其餘視圖控制器收集信息(稱爲子視圖控制器)和它的方式,促進了導航或內容不一樣的視圖控制器。
To specify the rendering mode of an image, first create a standard image, and then call the imageWithRenderingMode: method on that image.
指定一個圖像的渲染模式,首先建立一個標準的圖像,而後調用imagewithrenderingmode:在圖像的方法。
This is a preliminary document for an API or technology in development. Apple is supplying this information to help you plan for the adoption of the technologies and programming interfaces described herein for use on Apple-branded products. This information is subject to change, and software implemented according to this document should be tested with final operating system software and final documentation. Newer versions of this document may be provided with future betas of the API or technology.
這是用於開發的API或技術初步文件。蘋果提供了這樣的信息來幫助你計劃的技術和編程接口的應用對蘋果品牌的產品。這個信息是隨時變化的,軟件實施根據本文件應進行最終的操做系統軟件和最終文件。本文檔的較新版本提供的API或技術的將來版。
The Main Storyboard Initializes Your App’s User Interface
主故事板初始化應用程序的用戶界面
The main storyboard is defined in the app’s Information property list file. If a main storyboard is declared in this file, then when your app launches, iOS performs the following steps:
主故事板中定義的應用程序的信息屬性列表文件。若是一個主要的故事是在這個文件中聲明,而後當你的應用程序啓動,iOS執行如下步驟:
It instantiates a window for you.
它爲你實例化一個窗口。
It loads the main storyboard and instantiates its initial view controller.
它加載主故事板並實例化其初始視圖控制器。
It assigns the new view controller to the window’s rootViewController property and then makes the window visible on the screen.
它賦予新的視圖控制器窗口RootViewController財產和使窗口在屏幕上可見的。
Override point for customization after application launch.
覆蓋點定製以後推出的應用。

6-16

UINavigationController
UINavigationController
linker command failed with exit code 1 (use -v to see invocation)
連接器命令失敗退出代碼1(使用V看到調用)
Same as using UIBarPositionAny in -setBackgroundImage:forBarPosition:barMetrics. Resizable images will be stretched
使用uibarpositionany同樣在setbackgroundimage:forbarposition:barmetrics。可調整大小的圖像將被拉伸
vertically if necessary when the navigation bar is in the position UIBarPositionTopAttached.
若是有必要的垂直導航欄的位置時uibarpositiontopattached。
barMetrics
barmetrics
// 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.
/ /重啓了暫停任何任務(或還沒有啓動)當應用程序處於非活動狀態的。若是應用程序是之前的背景下,選擇刷新用戶界面。

6-16

action segue
行動繼續
detail
細節
non adaptive
非自適應
Present the content in the detail or master area depending on the content of the screen. If the app is displaying a master and detail view, the content is pushed onto the detail area. If the app is only displaying the master or the detail, the content is pushed on top of the current view controller stack.
目前的內容在細節或掌握區域取決於屏幕的內容。若是應用程序顯示一個主視圖,內容推到細節的區域。若是應用程序只顯示主或細節,內容推上頂峯的當前視圖控制器棧。
Present the content by pushing it onto the current stack of view controllers.
經過將其推到視圖控制器當前堆棧的內容。
Dispose of any resources that can be recreated.
處置任何資源,能夠重現。
push segues are deprecate in ios 8.0 and later
將繼續是反對在iOS 8及之後

6-21

Do those gentry certainly have blue blood?
那些紳士確定有藍色的血?
archive
檔案
pigeonhole
歸檔
unrecognized selector sent to instance
沒法識別的選擇發送給實例

6-23

shared
共享
Returns the shared defaults object.
收益共享的默認對象。
nsuserdefaults synchronize
nsuserdefaults同步
Writes any modifications to the persistent domains to disk and updates all unmodified persistent domains to what is on disk.
寫入到磁盤的任何修改和更新全部持久性域域未持續到磁盤上的是什麼。

2015-6-28

dealloc

Only override drawRect: if you perform custom drawing.只有重寫drawRect:若是執行自定義繪製。An empty implementation adversely affects performance during animation.在動畫中,一個空的實現會對性能產生不利的影響。Drawing code繪圖代碼shape形狀line線stroke腦卒中沙漏circle圓

相關文章
相關標籤/搜索