![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
swift
文章平均质量分 88
see_you_in_the_past
若爱,请深爱;如恨,请离开
展开
-
Swift的TableBarController(导航栏)详解
首先建立一个空白工程和三个类在appdelegate中let vc1:UIViewController=FirstViewController() let nv1=UINavigationController(rootViewController: vc1) nv1.tabBarItem=UITabBarItem(tit原创 2014-12-18 18:26:27 · 1994 阅读 · 0 评论 -
swift中的反向代理传值与Object-C中的对比
//大体意思为我们在sub类中声明一个协议,协议中有2个方法,然后Root类遵守协议,并代理实现这两个方法,然后再sub中进行反向传值给Root类实现Root类的改变我们先讲OC中的 当然是首先建立一个空白工程,和两个类,一个是RootViewController和SubViewController()在Appdelegate中写 RootViewController原创 2014-12-17 14:55:01 · 863 阅读 · 0 评论 -
Swift中的问号和感叹号详解
Swift语言使用var定义变量,但和别的语言不同,Swift里不会自动给变量赋初始值,也就是说变量不会有默认值,所以要求使用变量之前必须要对其初始化。如果在使用变量之前不进行初始化就会报错:var stringValue : String //error: variable 'stringValue' used before being initialized//let hashVa转载 2014-12-16 19:00:56 · 1007 阅读 · 0 评论 -
swift的基本语法
swift简单语法原创 2014-12-11 11:52:19 · 602 阅读 · 0 评论 -
swift面向对象详解
swift的面向对象(主要包括如何创建类,创建和使用类方法,类的继承,类的扩展,如何使用接口及协议 命名空间(在同一个类,在不同的类))//// main.swift// SwiftObjectFromJike//// Created by ytdxxt on 14-12-11.// Copyright (c) 2014年 xut原创 2014-12-11 18:34:50 · 603 阅读 · 0 评论 -
Swift中tableView的建立与使用
首先当然是建立一个空白工程,然后建立一个RootViewController 我们在appdelegate中这样写道let rvc:UIViewController=RootViewController() let nv=UINavigationController(rootViewController: rvc) self.w原创 2014-12-18 18:08:54 · 687 阅读 · 0 评论 -
Swift中结构体(Struct)和类(Class)的区别
原文地址为http://www.tuicool.com/articles/EveeEfHi, There。今天這個篇文章要來介紹 Swift 中 struct 和 class 有什麼不一樣的地方?首先要先和大家提到一個观念,Value Type 和 Reference Type 其中 struct 是 Value Type 而 class 是 Reference Type 所以這篇文章呈現转载 2015-03-26 17:54:09 · 10138 阅读 · 3 评论 -
navigationBar translucent
A Boolean value indicating whether the navigation bar is translucent (YES) or not (NO).The default value is YES. If the navigation bar has a custom background image, the default is YES if any pixel转载 2015-09-24 11:51:49 · 463 阅读 · 0 评论