To run the example project, clone the repo, and run pod install
from the Example directory first.
#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 is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'LZDefaultView'
[email protected], [email protected]
LZDefaultView is available under the MIT license. See the LICENSE file for more info.