This commit is contained in:
启星
2025-08-11 10:43:19 +08:00
commit fb2c58d96f
8839 changed files with 709982 additions and 0 deletions

View File

@@ -0,0 +1,107 @@
//
// UIView+SDExtension.m
// SDRefreshView
//
// Created by aier on 15-2-23.
// Copyright (c) 2015 GSD. All rights reserved.
//
/*
*********************************************************************************
*
* 🌟🌟🌟 SDCycleScrollViewQQ185534916 🌟🌟🌟
*
* 使bugbug
*
* :GSD_iOS
* Email : gsdios@126.com
* GitHub: https://github.com/gsdios
*
* SDAutoLayout
* CellTableviewLabelScrollView
* AutoLayout
* http://www.letv.com/ptv/vplay/24038772.html
* https://github.com/gsdios/SDAutoLayout/blob/master/README.md
* GitHubhttps://github.com/gsdios/SDAutoLayout
*********************************************************************************
*/
/*
*********************************************************************************
*
* 使bugbug
*
* :GSD_iOS
* Email : gsdios@126.com
* GitHub: https://github.com/gsdios
*
* SDAutoLayout
* CellTableviewLabelScrollView
* AutoLayout
* http://www.letv.com/ptv/vplay/24038772.html
* https://github.com/gsdios/SDAutoLayout/blob/master/README.md
* GitHubhttps://github.com/gsdios/SDAutoLayout
*********************************************************************************
*/
#import "UIView+SDExtension.h"
@implementation UIView (SDExtension)
- (CGFloat)sd_height
{
return self.frame.size.height;
}
- (void)setSd_height:(CGFloat)sd_height
{
CGRect temp = self.frame;
temp.size.height = sd_height;
self.frame = temp;
}
- (CGFloat)sd_width
{
return self.frame.size.width;
}
- (void)setSd_width:(CGFloat)sd_width
{
CGRect temp = self.frame;
temp.size.width = sd_width;
self.frame = temp;
}
- (CGFloat)sd_y
{
return self.frame.origin.y;
}
- (void)setSd_y:(CGFloat)sd_y
{
CGRect temp = self.frame;
temp.origin.y = sd_y;
self.frame = temp;
}
- (CGFloat)sd_x
{
return self.frame.origin.x;
}
- (void)setSd_x:(CGFloat)sd_x
{
CGRect temp = self.frame;
temp.origin.x = sd_x;
self.frame = temp;
}
@end