zoukankan      html  css  js  c++  java
  • x code 编译器常用英文速记

    interface

    类定义

    implementation

    类实现

    master-detail Application

    主应用程序

    page-based Application

    基于页面的应用

    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

  • 相关阅读:
    artTemplate的使用总结
    死锁的简单实现
    代理模式
    装饰器模式
    建造者模式
    工厂模式
    单例模式
    linux查看日志内容
    系统信息及系统操作
    设计模式-建造者模式
  • 原文地址:https://www.cnblogs.com/zhangdashao/p/4446107.html
Copyright © 2011-2022 走看看