VLDataBinding 0.0.4

VLDataBinding 0.0.4

测试测试
语言语言 Obj-CObjective C
许可证 Apache 2
发布日期最新发布2014 年 12 月

VLDataBinding 维护。



  • 作者
  • Can YAMAN

iOS storyboard 数据绑定库。

  • 管理 segue 生命周期。
//Segue identifier is 'WithOpertionSegue'
//After the segue performs; prepare destination view controller
-(void)didPerformWithOpertionSegue:(UIStoryboardSegue *)segue sender:(id)sender{
    UIViewController *destination=(UIViewController *)segue.destinationViewController;

}

//Segue identifier is 'AfterOperationSegue'
//Before the segue performs
-(void)willPerformAfterOperationSegue:(id)sender{
    if(...)
      [self performSegueWithIdentifier:@"AfterOperationSegue" sender:sender];
}
  • 易于实现表格视图(VLTableViewController),包括静态和动态的 UITableViewCell。
  • VLTableViewController 的实现通过 tableData 属性生成所有表格视图而无需编写任何代码。
  • 将数据绑定到指定的 keyPath 到继承的 UIView 对象的定义属性上。(通过未定义的键)

如果您想将字符串绑定到 'name' 键路径, danced to 目标对象的文本属性

bindText  String  name
  • UITableViewCell 通过 segue 将数据传送到目标视图控制器。
  • 同步操作用于管理与此操作相关的 segue。

如何集成

  • 在 podfile 中添加 'pod 'VLDataBinding''
pod 'VLDataBinding'
  • 在 *.pch 文件中添加 '#import VLDataBinding.h'
 #import VLDataBinding.h