1 Unstar Star 0 Fork 0

超级码猿库 / WYNewsDemo

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
SYTools.m 1.08 KB
Copy Edit Web IDE Raw Blame History
ShiYi authored 2016-07-25 19:39 . WYNewsDemo
//
// SYTools.m
// 爱限免App
//
// Created by qianfeng on 16/6/6.
// Copyright © 2016年 qianfeng. All rights reserved.
//
#import "SYTools.h"
@implementation SYTools
+(UIButton *)createButton:(NSString *)title withType:(UIButtonType)type setBackgroundColor:(UIColor *)backColor setTintColor:(UIColor *)tintColor tintFont:(CGFloat)font
{
UIButton *btn = [UIButton buttonWithType:type];
[btn setTitle:title forState:UIControlStateNormal];
btn.backgroundColor = backColor;
[btn setTitleColor:tintColor forState:UIControlStateNormal];
btn.titleLabel.font = [UIFont systemFontOfSize:font];
return btn;
}
+(UILabel *)createLabel:(NSString *)title withTextAlignment:(NSTextAlignment)textAlignment setTextColor:(UIColor *)textColor tintFont:(CGFloat)font
{
UILabel *label = [[UILabel alloc] init];
label.text = title;
label.textAlignment = textAlignment;
label.textColor = textColor;
label.font = [UIFont systemFontOfSize:font];
return label;
}
+(UIImage *)createImage:(NSString *)imageStr
{
return [UIImage imageNamed:imageStr];
}
@end

Comment ( 0 )

Sign in for post a comment

Objective-C
1
https://gitee.com/super_picture_book_team/WYNewsDemo.git
git@gitee.com:super_picture_book_team/WYNewsDemo.git
super_picture_book_team
WYNewsDemo
WYNewsDemo
master

Search

132457 8cb2edc1 1899542 131848 70c8d3a4 1899542