简化iOS UI处理 Visuality

码农软件 · 软件分类 · 其他(Others) · 2019-07-18 14:29:33

软件介绍

Visuality 是一个 iOS 库,简化了对 Swift 中的原生 SDK 的 UI 处理工作。

例子:

/*
 * Initialize by nib name and bundle.
 */
let someBundle1 = NSBundle(identifier: "com.example.SomeBundleIdentifier")
let someView1 = SomeView.VT_viewFromNibWithName("SomeNibName", locatedInBundle: someBundle1)
/*
 * Initialize by nib name and bundle identifier.
 */
let someView2 = SomeView.VT_viewFromNibWithName("SomeNibName", locatedInBundleWithIdentifier: "com.example.SomeBundleIdentifier")
/*
 * Initialize by nib name located in main bundle.
 */
let someView3 = SomeView.VT_viewFromNibLocatedInMainBundleWithNibName("SomeNibName")
/*
 * Also, when you send nil as value for bundle,
 * view will be loaded from main bundle too.
 */
let someView4 = SomeView.VT_viewFromNibWithName("SomeNibName", locatedInBundle: nil)
/*
 * Initialize from nib with class name and bundle.
 */
let someBundle5 = NSBundle(identifier: "com.example.SomeBundleIdentifier")
let someView5 = SomeView.VT_viewFromNibWithClassNameLocatedInBundle(someBundle5)
/*
 * Initialize from nib with class name and bundle identifier.
 */
let someView6 = SomeView.VT_viewFromNibWithClassNameLocatedInBundleWithIdentifier("com.example.SomeBundleIdentifier")
/*
 * Initialize from nib with class name located in main bundle.
 */
let someView7 = SomeView.VT_viewFromNibWithClassNameLocatedInMainBundle()
/*
 * You can do the same thing by sending nil as value for bundle identifier.
 * In this case view will be loaded from main bundle too.
 */
let someView8 = SomeView.VT_viewFromNibWithClassNameLocatedInBundleWithIdentifier(nil)


本文地址:https://codercto.com/soft/d/10406.html

Types and Programming Languages

Types and Programming Languages

Benjamin C. Pierce / The MIT Press / 2002-2-1 / USD 95.00

A type system is a syntactic method for automatically checking the absence of certain erroneous behaviors by classifying program phrases according to the kinds of values they compute. The study of typ......一起来看看 《Types and Programming Languages》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具