Skip to content

zhuliu001/LZDefaultView

Repository files navigation

LZDefaultView

CI Status Version License Platform

Example

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); }; }

Requirements

Installation

LZDefaultView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'LZDefaultView'

Author

[email protected], [email protected]

License

LZDefaultView is available under the MIT license. See the LICENSE file for more info.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published