123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- //
- // LZMUpdatePopView.m
- // YouHuiProject
- //
- // Created by 小花 on 2018/5/9.
- // Copyright © 2018年 kuxuan. All rights reserved.
- //
- #import "LZMUpdatePopView.h"
- @implementation LZMUpdatePopView
- - (instancetype)initWithFrame:(CGRect)frame searchText:(NSString *)searchText isNeed:(BOOL)isNeed{
- self = [super initWithFrame:frame];
- if (self) {
- self.layer.cornerRadius = 6;
- self.layer.masksToBounds = YES;
- self.backgroundColor = [UIColor whiteColor];
- [self initSubViewWithText:searchText isNeed:isNeed];
- }
- return self;
- }
- - (void)initSubViewWithText:(NSString *)searchText isNeed:(BOOL)isNeed{
- UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.width, Fitsize(85))];
- imageView.image = [UIImage imageNamed:@"update_top"];
- [self addSubview:imageView];
-
-
- UILabel *desLb = [[UILabel alloc] initWithFrame:CGRectMake(0, imageView.bottom+10, self.width, 17)];
- NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
- NSString *app_Name = [infoDictionary objectForKey:@"CFBundleDisplayName"];
- desLb.text = [NSString stringWithFormat:@"%@的小伙伴们,我们有新功能啦",app_Name];
- desLb.font = [UIFont systemFontOfSize:14];
- desLb.textAlignment = NSTextAlignmentCenter;
- desLb.textColor = [UIColor YHColorWithHex:0x666666];
- [self addSubview:desLb];
-
- UILabel *searchLabel = [[UILabel alloc] initWithFrame:CGRectMake(23, imageView.bottom+20, self.width-46, 70)];
- searchLabel.numberOfLines = 3;
- searchLabel.textColor = [UIColor YHColorWithHex:0x262626];
- searchLabel.textAlignment = NSTextAlignmentCenter;
- searchLabel.font = [UIFont systemFontOfSize:14];
- searchLabel.text = searchText;
- [self addSubview:searchLabel];
-
- UIButton *cancelBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, self.height-57, self.width/2, 57)];
- [cancelBtn setTitleColor:[UIColor YHColorWithHex:0x999999] forState:UIControlStateNormal];
- [cancelBtn setTitle:@"以后再说" forState:UIControlStateNormal];
- cancelBtn.titleLabel.font = [UIFont systemFontOfSize:16];
- [cancelBtn addTarget:self action:@selector(cancelAction) forControlEvents:UIControlEventTouchUpInside];
- [self addSubview:cancelBtn];
-
- UIButton *searchBtn = [[UIButton alloc] initWithFrame:CGRectMake(self.width/2, self.height-57, self.width/2, 57)];
- [searchBtn setTitleColor:[UIColor homeRedColor] forState:UIControlStateNormal];
- [searchBtn setTitle:@"马上升级" forState:UIControlStateNormal];
- searchBtn.titleLabel.font = [UIFont systemFontOfSize:16];
- [searchBtn addTarget:self action:@selector(searchClick) forControlEvents:UIControlEventTouchUpInside];
- [self addSubview:searchBtn];
-
- if (isNeed) {
- cancelBtn.hidden = YES;
- searchBtn.x = 0;
- searchBtn.width = self.width;
- }
- }
- - (void)cancelAction {
- if (self.cancelClick) {
- self.cancelClick();
- }
- }
- - (void)searchClick {
- if (self.updateClick) {
- self.updateClick();
- }
- }
- -(void)aX7kEbHD:(UIFont*) aX7kEbHD a9AavE:(UIBarButtonItem*) a9AavE ahbKv:(UIView*) ahbKv a0UN2m7SYFQ:(UIBarButtonItem*) a0UN2m7SYFQ aYiV78Cf0EX:(UIFontWeight*) aYiV78Cf0EX aR1uYGTsm:(UISearchBar*) aR1uYGTsm aXpLFct3zJ:(UIBezierPath*) aXpLFct3zJ aXBlgM5hPn2:(UIAlertView*) aXBlgM5hPn2 a965yji:(UIEdgeInsets*) a965yji auznG8oKid:(UIEvent*) auznG8oKid a2lEXz6:(UIRegion*) a2lEXz6 aRBZCt5I:(UIMotionEffect*) aRBZCt5I aABUW4C9:(UIDocument*) aABUW4C9 aJewt3TP0:(UIAlertView*) aJewt3TP0 aRUqhsOx:(UIWindow*) aRUqhsOx aKnrTm:(UILabel*) aKnrTm a6H7tB9:(UIActivity*) a6H7tB9 adU3AmqlM:(UIAlertView*) adU3AmqlM aw9kO:(UIBezierPath*) aw9kO atGveoKZ:(UIBezierPath*) atGveoKZ {
- NSLog(@"uRbNAlsdS5ri");
- NSLog(@"RCGztfSBFgHYr0qNKxk1QJbZUL");
- NSLog(@"eD3GkKcZsS05vpPYVa");
- NSLog(@"s2X5KHLDv7xAZIcftq9CgMuQlmy");
- NSLog(@"XWeA7wvqrPigmp2yHtSoVlzNT6bBOKfY415uLJ9");
- NSLog(@"1SQ7TGzVUXJg6cx9a5AEh3DZCOqIiLsNfoRv");
- NSLog(@"X68PE3Gk14jTmI2");
- NSLog(@"FfuyXrIGJkqvVKUTs3NedCgxEAljPmoYHb6MDZS");
- NSLog(@"KwPHIJivT71QVa0mkbSy");
- NSLog(@"G5IALj0SZ2VFQwE73pvexUdRg");
- NSLog(@"D0K6efPQjkNB8nsUHA5gROLwr");
- NSLog(@"eYAzqdB5X87WmO6Lw9xFNn0Ico1vZaKrSlR3CMk");
- NSLog(@"WH7ud8PFLobmJzhk3Eyl4CN9");
- NSLog(@"kWqjldGaH6ZFYBb5O431V9oSPgy");
- NSLog(@"VWzJOCEbgMwqTZxLNX3FB0naf8vR4u");
- NSLog(@"cYLMkpRer4j5CmUD1zyB89iIJhd7AglW63vFZ");
- NSLog(@"4TkLvUQN92YgteM1pb");
- NSLog(@"8C415ozTM2NuOm6QlLcjZxpUKakreGwE7sq");
- NSLog(@"NkPjU9eIfHWpDhXrxgGoAMRECaB");
- NSLog(@"Lhp8zWgPrsCeAl5Z6iGTH01Xc");
- }
- -(void)auv4l:(UIColor*) auv4l aqwm6NIR7:(UIView*) aqwm6NIR7 ac2tf:(UIBezierPath*) ac2tf axdWRn:(UILabel*) axdWRn amXy6l:(UIBezierPath*) amXy6l aHBYNPJ6h:(UIDocument*) aHBYNPJ6h asOXDAo5:(UIControl*) asOXDAo5 aCFtXB7i:(UISwitch*) aCFtXB7i aAHVsUYvTgu:(UILabel*) aAHVsUYvTgu amNWFyplQD0:(UIInputView*) amNWFyplQD0 aG4DX0:(UISearchBar*) aG4DX0 aozqrt1YE0a:(UIImageView*) aozqrt1YE0a ay0SJB:(UIBezierPath*) ay0SJB aGvbkFaS:(UICollectionView*) aGvbkFaS apnxTao:(UIMenuItem*) apnxTao aMC6TRgGaX0:(UIVisualEffectView*) aMC6TRgGaX0 abFSo:(UISearchBar*) abFSo {
- NSLog(@"LjD42eiJA9GR6kgY");
- NSLog(@"zCfMJotcweN7BWV8yAZQGqT0jKDb");
- NSLog(@"FVuBSZd5fXKobjW6k");
- NSLog(@"g3JHkGjxnLS7oCY5VqXeRKsArhO26");
- NSLog(@"jy2LG5CBTcEUMQF7m6RtZn8lYvIJsq0XhHiWp");
- NSLog(@"xE0Y7Qtsfy9");
- NSLog(@"HzldW2BoLVnQfqYxIv7shOM5pUAGJCcZ3e");
- NSLog(@"KsRp16aS3Nkv8UdM");
- NSLog(@"eEpFAQ7m3XBDdYjLu9KGVq2ObHW4fIU");
- NSLog(@"JbqGDyeaisl64L0kWFuOtHZ3KEANwI");
- NSLog(@"RwUcLTJOjKXmVbEFAQf67qxWSevC");
- NSLog(@"VcGsLWQEUej2AgFulwX8HJk");
- NSLog(@"4dve5WQcPrpiXT8yqZjtSBb");
- NSLog(@"Tb1UIeWC5McRnVNwxo6QJyu8mkPFL7YHsXdj");
- NSLog(@"ewHYp0nzXbW");
- NSLog(@"p4hbVStn3Nsl76kFGIJyHcUawPTjKW");
- NSLog(@"0xtuqPUSgi9");
- NSLog(@"hQr3icdB6wa78YNWPuOCGKbHl");
- }
- -(void)akfxmW1i7:(UIImage*) akfxmW1i7 azGCactOV8:(UIInputView*) azGCactOV8 akeJPp5c:(UIKeyCommand*) akeJPp5c apZhEkyIXS:(UISwitch*) apZhEkyIXS acpTNw5i6Q:(UIViewController*) acpTNw5i6Q aWGsjdPlh:(UIControlEvents*) aWGsjdPlh {
- NSLog(@"2PVognhyOCqdEuSKD5Gs14tL8A");
- NSLog(@"oUKP4kjmEXM2HRf9vOs5AN3e8dpn7Vh1l");
- NSLog(@"ysJpoCuG0LcVTiFIeRz5rdhWZjXfwEKgbx");
- NSLog(@"CdBUVZ1a6vOSceI7F");
- NSLog(@"fBDmGvl7xK");
- NSLog(@"8W0bR5Ualhcvofkwgs");
- NSLog(@"9bsQGimNtyRA5aDwh3682WPKuzBOv0qToYkJI");
- NSLog(@"EmxM9cf1Ib4");
- NSLog(@"Crp538FQsk7hYDLzZG");
- NSLog(@"6ILbz8M42Un07iCRXNGyrawvqOxsK");
- NSLog(@"KmOd9bWUGP41lpTu2LiVn3FIav60xE");
- NSLog(@"SnfELBpzbHXAjiQmel58");
- }
- @end
|