OC Control FHXFloatWinView(浮窗)

一直觉得自己写的不是技术,而是情怀,一个个的教程是自己这一路走来的痕迹。靠专业技能的成功是最具可复制性的,希望我的这条路能让你们少走弯路,希望我能帮你们抹去知识的蒙尘,希望我能帮你们理清知识的脉络,希望未来技术之巅上有你们也有我。

OC Control  FHXFloatWinView(浮窗)

效果

OC Control  FHXFloatWinView(浮窗)

使用

@property (nonatomic,strong) UIView *assistView;

    self.assistView = [UIView new];
    self.assistView.addTo(self.view).bgColor([Color randomColor]).makeCons(^{
        make.centerY.equal.view(self.view).constants(-100);
        make.centerX.equal.view(self.view).constants(-100);
        make.width.height.equal.constants(100);
    }).onClick((^{
        NSMutableArray *arr = [NSMutableArray arrayWithObjects:@"sunck", @"is", @"a", @"nice", @"man", nil];
        
        CGRect newRect = CGRectMake([self.assistView convertRect:CGRectZero toView:self.view].origin.x, [self.assistView convertRect:CGRectZero toView:self.view].origin.y+self.assistView.bounds.size.height, 300, 100);
        //创建
        [FHXFloatWinView showViewWithRect:newRect withList:arr withBlock:^(NSString * value, NSString * operating) {
            if ([operating isEqualToString:@"点击"]) {
                
            }else if ([operating isEqualToString:@"删除"]) {
                
            }
        }];
    }));
    
上一篇:OC Control AdvertiseGradient(启动广告图)


下一篇:为什么说OC是动态语言?体现在什么地方?