简化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://www.codercto.com/soft/d/10406.html

ActionScript 3.0 Cookbook

ActionScript 3.0 Cookbook

Joey Lott、Darron Schall、Keith Peters / Adobe Dev Library / 2006-10-11 / GBP 28.50

Well before Ajax and Microsoft's Windows Presentation Foundation hit the scene, Macromedia offered the first method for building web pages with the responsiveness and functionality of desktop programs......一起来看看 《ActionScript 3.0 Cookbook》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

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

在线压缩/解压 CSS 代码

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具