LZDefaultView
示例
要运行示例项目,请克隆代码库,然后首先在 Example 目录中运行 `pod install`。
#import <LZDefaultView/LZDefaultView.h>
@property(nonatomic,weak)LZDefaultView * defaultView;
-
(LZDefaultView *)defaultView { if (!_defaultView) { LZDefaultView * defaultView = [LZDefaultView new]; [self.view addSubview:defaultView]; _defaultView = defaultView; } return _defaultView; }
-
(void)viewDidLoad { [super viewDidLoad];
self.defaultView.backgroundColor = [UIColor cyanColor]; [self.defaultView setImageName:@"LZ_hacker.jpg" firstString:@"你好" secondString:@"世界"]; self.defaultView.bgViewBlock = ^(UIView * _Nonnull bgView) { NSLog(@"%@",bgView); }; self.defaultView.imageBlock = ^(UIImageView * _Nonnull imageView) { NSLog(@"%@",imageView); }; self.defaultView.firstLabelBlok = ^(UILabel * _Nonnull firstLabel) { NSLog(@"%@",firstLabel); }; self.defaultView.secondLabelBlock = ^(UILabel * _Nonnull secondLabel) { NSLog(@"%@",secondLabel); }; }
要求
安装
LZDefaultView 通过 CocoaPods 提供。要安装它,只需在 Podfile 中添加以下行即可
pod 'LZDefaultView'
作者
[email protected],[email protected]
许可证
LZDefaultView基于MIT许可证提供。更多信息请参阅LICENSE文件。