zoukankan      html  css  js  c++  java
  • UI基础-初识iOS开发

    storyboard文件的认识

    • 用来描述软件界面
    • 默认情况下,程序一启动就会加载Main.storyboard
    • 加载storyboard时,会首先创建和显示箭头所指的控制器界面

    IBAction和IBOutlet

    • IBAction:本质就是void,能让方法具备连线的功能
    • IBOutlet:能让属性具备连线的功能

    storyboard连线容易出现的问题

    •  连接的方法代码被删掉,但是连线没有去掉
      • 可能会出现方法找不到错误  
      • unrecognized selector sent to instance
    • 连接的属性代码被删掉,但是连线没有去掉
      • setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key

    UIViewController(控制器)的认识

    •  一个控制器负责管理一个大界面
    •  控制器负责界面的创建、事件处理等

    类扩展

    • 格式
      1 @interface 类名()
      2 /** 属性、方法的声明 */
      3 @end
    • 作用
      • 为某个类增加额外的属性和方法声明
      • 可以写在.h和.m文件中

    项目属性

    • Product Name
      • 软件名称、产品名称、项目名称
    • Organization Name
      • 公司名称、组织名称
    • Organization Identifier
      • 公司的唯一标识
      • 一般是公司域名的反写,比如com.lz
    • Bundle Identifier
      • 软件的唯一标识
      • 一般是Organization Identifier + Product Name
  • 相关阅读:
    python pyinotify模块详解
    lastpass密码管理工具使用教程
    MAMP 环境下安装Redis扩展
    SourceTree使用方法
    Mac securecrt 破解
    Memcache 安装
    Warning: setcookie() expects parameter 3 to be long, string given
    SQLSTATE[HY000] [2002] Connection refused
    插件管理无法访问
    光栅化渲染器
  • 原文地址:https://www.cnblogs.com/luoze/p/5467481.html
Copyright © 2011-2022 走看看