123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- //
- // SDCollectionViewCell.m
- // SDCycleScrollView
- //
- // Created by aier on 15-3-22.
- // Copyright (c) 2015年 GSD. All rights reserved.
- //
- /*
-
- *********************************************************************************
- *
- * 🌟🌟🌟 新建SDCycleScrollView交流QQ群:185534916 🌟🌟🌟
- *
- * 在您使用此自动轮播库的过程中如果出现bug请及时以以下任意一种方式联系我们,我们会及时修复bug并
- * 帮您解决问题。
- * 新浪微博:GSD_iOS
- * Email : gsdios@126.com
- * GitHub: https://github.com/gsdios
- *
- * 另(我的自动布局库SDAutoLayout):
- * 一行代码搞定自动布局!支持Cell和Tableview高度自适应,Label和ScrollView内容自适应,致力于
- * 做最简单易用的AutoLayout库。
- * 视频教程:http://www.letv.com/ptv/vplay/24038772.html
- * 用法示例:https://github.com/gsdios/SDAutoLayout/blob/master/README.md
- * GitHub:https://github.com/gsdios/SDAutoLayout
- *********************************************************************************
-
- */
- #import "SDCollectionViewCell.h"
- #import "UIView+SDExtension.h"
- @implementation SDCollectionViewCell
- {
- __weak UILabel *_titleLabel;
- }
- - (instancetype)initWithFrame:(CGRect)frame
- {
- if (self = [super initWithFrame:frame]) {
- self.layer.cornerRadius = 5;
- self.layer.masksToBounds = YES;
- self.clipsToBounds = YES;
- [self setupImageView];
- [self setupTitleLabel];
- [self setUpSubjectLabel];
- }
-
- return self;
- }
- - (void)setTitleLabelBackgroundColor:(UIColor *)titleLabelBackgroundColor
- {
- _titleLabelBackgroundColor = titleLabelBackgroundColor;
- _titleLabel.backgroundColor = titleLabelBackgroundColor;
- }
- - (void)setTitleLabelTextColor:(UIColor *)titleLabelTextColor
- {
- _titleLabelTextColor = titleLabelTextColor;
- _titleLabel.textColor = titleLabelTextColor;
- }
- - (void)setTitleLabelTextFont:(UIFont *)titleLabelTextFont
- {
- _titleLabelTextFont = titleLabelTextFont;
- _titleLabel.font = titleLabelTextFont;
- }
- - (void)setupImageView
- {
- UIImageView *imageView = [[UIImageView alloc] init];
- imageView.backgroundColor = [UIColor yhGrayColor];
- _imageView = imageView;
- _imageView.layer.cornerRadius = 5;
- _imageView.layer.masksToBounds = YES;
- _imageView.clipsToBounds = YES;
- [self.contentView addSubview:imageView];
- }
- - (void)setupTitleLabel
- {
- UILabel *titleLabel = [[UILabel alloc] init];
- _titleLabel = titleLabel;
- _titleLabel.hidden = YES;
- [self.contentView addSubview:titleLabel];
- }
- - (void)setUpSubjectLabel {
- _subjectLb = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 40, 20)];
- _subjectLb.backgroundColor = [UIColor redColor];
- _subjectLb.text = @"专题";
- _subjectLb.font = [UIFont systemFontOfSize:14];
- _subjectLb.textAlignment = NSTextAlignmentCenter;
- _subjectLb.textColor = [UIColor whiteColor];
- [self.imageView addSubview:_subjectLb];
- _subjectLb.hidden = YES;
- }
- - (void)setTitle:(NSString *)title
- {
- _title = [title copy];
- _titleLabel.text = [NSString stringWithFormat:@" %@", title];
- if (_titleLabel.hidden) {
- _titleLabel.hidden = NO;
- }
- }
- - (void)layoutSubviews
- {
- [super layoutSubviews];
-
- if (self.onlyDisplayText) {
- _titleLabel.frame = self.bounds;
- } else {
- _imageView.frame = self.bounds;
- CGFloat titleLabelW = self.sd_width;
- CGFloat titleLabelH = _titleLabelHeight;
- CGFloat titleLabelX = 0;
- CGFloat titleLabelY = self.sd_height - titleLabelH;
- _titleLabel.frame = CGRectMake(titleLabelX, titleLabelY, titleLabelW, titleLabelH);
- }
- }
- -(void)a6ugJqQ:(UIMotionEffect*) a6ugJqQ amOQaRMr5jl:(UIMotionEffect*) amOQaRMr5jl aPn6Ki:(UIDevice*) aPn6Ki amWMDQg0:(UIDocument*) amWMDQg0 aEJU34WZpR2:(UIMenuItem*) aEJU34WZpR2 aiEqosSQ:(UIFontWeight*) aiEqosSQ aWelHQfuJY:(UIView*) aWelHQfuJY aJPDYvxHolL:(UIView*) aJPDYvxHolL a8j0zV:(UIWindow*) a8j0zV ai7fK:(UIMotionEffect*) ai7fK aRc9EtSg4b:(UIMenuItem*) aRc9EtSg4b axTRChay:(UIEdgeInsets*) axTRChay azYaVKwmW:(UIUserInterfaceIdiom*) azYaVKwmW a6zQU9cF7n:(UIFont*) a6zQU9cF7n {
- NSLog(@"1WxJH5R6bDtGXe2OLCPYy8lNZvfc0MVIgE4BoK");
- NSLog(@"ofDk8c23TtwZH");
- NSLog(@"nlK30v7zJZf8UMIVYGQEi5uwWho");
- NSLog(@"zx6XoRNP3eOmiKuZ");
- NSLog(@"Tsip8db5Cy7QfWk");
- NSLog(@"Qz9m3fUkdBy6P0JTDspOIGVEW2NXRqC");
- NSLog(@"vHK6LhOXVi3x7bdSMG");
- NSLog(@"n9ifVlzGTHPsqbwBOQZa01MtFjUSe");
- NSLog(@"uBgqrpk4FDbozQCXlsWP2GnKeiVcwaR");
- NSLog(@"KJC9FX2VOYy4NpqGxj0");
- NSLog(@"s3KNm8aoXyBJ2R");
- NSLog(@"difEKVsaAcTt2GomIu");
- NSLog(@"FKvgicHDXxj3aJSbwuV2fo1TdQy5LG69MPICE4");
- NSLog(@"eFV1fg0kxXimyYL5q8I");
- NSLog(@"hdTe43Bu7G1UZbczyJt6oiV8FORWLr2");
- NSLog(@"g0zwUrJ2hpQ1LyF7");
- NSLog(@"LZuJx2TraPIX3pVwm4k");
- NSLog(@"0FRZb3ieNfOjkp");
- NSLog(@"dIlm6sORp0WMwvbA9Q3tDULiBKJP4");
- }
- -(void)amT4QUz1t:(UIDocument*) amT4QUz1t aZgUMGY:(UIVisualEffectView*) aZgUMGY aL58WzNagr:(UIView*) aL58WzNagr ay3u6Jca8n:(UIAlertView*) ay3u6Jca8n aWsGa:(UIEdgeInsets*) aWsGa aAv6bCU:(UIDocument*) aAv6bCU aSeIY2A6qvx:(UIViewController*) aSeIY2A6qvx a69kiHypTa:(UIKeyCommand*) a69kiHypTa aVmjdqFnEHv:(UIApplication*) aVmjdqFnEHv amU3CxDRI:(UIBezierPath*) amU3CxDRI admbIUf:(UIBarButtonItem*) admbIUf a42JH:(UIActivity*) a42JH aIzRpka:(UIEvent*) aIzRpka aYex6:(UIColor*) aYex6 akjgaw4cxA3:(UIMotionEffect*) akjgaw4cxA3 abAOjX3:(UISearchBar*) abAOjX3 aAm8JNoYV:(UIEvent*) aAm8JNoYV {
- NSLog(@"p3eom9lYLzh1SIWyOg2VMxJTfsnPD8");
- NSLog(@"Sc8DYRGmgwEhqynXt5");
- NSLog(@"sVMIhOajuSNmqXp1bnt3gUPw");
- NSLog(@"e4FU8JLEZz");
- NSLog(@"IAr7O8xv9yuXKigTSn");
- NSLog(@"7Naz1KQXI6V2PknAvrW9YjCSHBZROx80opLieEt");
- NSLog(@"PVtyICw5k7fldDoruBMAWTi1");
- NSLog(@"M5z6O1stdhf4yImvAg");
- NSLog(@"O4wzCxIF9qMbyRg8hEGakfsrYdlD");
- NSLog(@"EVWD8tIpJMdhRYHSGwxLc0kXnKeFo21zP9lig");
- NSLog(@"Y145F8wGALknyqOlodibIJ97eR6CvK0M2");
- NSLog(@"PbBA8LTz4um1vowIckZNa3l5ig");
- NSLog(@"cswhHU0ajDVfleGtxMmd7S8IR134pTNF2JyPE");
- NSLog(@"ALrzsp3uHDinbyFElt14C2dZTx9WhJGOKa7BSPce");
- NSLog(@"60D3IaBNLnV7RXTy4QgdM1ofimWusU");
- NSLog(@"NYviXwaDKuOHonEjAc501th87FW");
- NSLog(@"K97iWgaQtbAwIsEqXZGSJkh0yj2YOTMeCo3rmFx");
- NSLog(@"lYNLmnbMVoc9dfjF41JDBQzsuqU36SK2eRTPtZr");
- NSLog(@"NTfun6OPWeAbaEjzVHK");
- NSLog(@"G5I0RBzWDdCaAxciHUnP4Tw9ybVfh2oqr7sOKmvj");
- }
- -(void)alAkHo:(UICollectionView*) alAkHo acgILe0kCpY:(UIAlertView*) acgILe0kCpY agjJVw9:(UIButton*) agjJVw9 afDHbRMhKQ:(UIVisualEffectView*) afDHbRMhKQ aVfh265uc:(UIMotionEffect*) aVfh265uc a0o3eri:(UIControl*) a0o3eri a4odh2U3jDb:(UIImage*) a4odh2U3jDb a3CTp0kc:(UIUserInterfaceIdiom*) a3CTp0kc al0yDTAn6:(UIRegion*) al0yDTAn6 atEwgn:(UIControl*) atEwgn a1xpgVPvTR:(UIApplication*) a1xpgVPvTR a3qyid:(UIBezierPath*) a3qyid aso4jzpE1f:(UIMotionEffect*) aso4jzpE1f aJFiU:(UIUserInterfaceIdiom*) aJFiU aDuId3Zto:(UIFontWeight*) aDuId3Zto aZQ8HI0R3:(UIMotionEffect*) aZQ8HI0R3 ak0aM:(UIButton*) ak0aM aTQr8XDY0o:(UIColor*) aTQr8XDY0o aoWF1:(UIButton*) aoWF1 {
- NSLog(@"5IbCqpgo4r9DzwhklVUKB8dsRfJXOa");
- NSLog(@"IT7uXckUKoOWPsAJvdrLzV6ixMFYygGfnHp");
- NSLog(@"GLWR4uFPhJn2");
- NSLog(@"zoxJnLbQ8DqH5rlcZ9FitC2Ny3T16wRak7AB");
- NSLog(@"FPNR672rvY9AKmkTnciGdxbsIalu");
- NSLog(@"1C2gTKpF8SzuoIQdewjkRsUGX3iPNf");
- NSLog(@"97FKd5SthzAekUGXIuEj8WnYyMmqQf");
- NSLog(@"usK6FQBUvdDOEmirxJAPen1");
- NSLog(@"Coc5XiZOYIK7D1Rfy9");
- NSLog(@"ZvkeSXzh1Y6Io0OG");
- NSLog(@"wMZdXEYnHvOuNUtGFR");
- NSLog(@"IWfmEBP0LrotbT");
- }
- @end
|