forked from coding/Coding-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUIButton+Common.h
More file actions
executable file
·34 lines (27 loc) · 1.02 KB
/
UIButton+Common.h
File metadata and controls
executable file
·34 lines (27 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//
// UIButton+Common.h
// Coding_iOS
//
// Created by 王 原闯 on 14-8-5.
// Copyright (c) 2014年 Coding. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "User.h"
@interface UIButton (Common)
+ (UIButton *)buttonWithTitle:(NSString *)title titleColor:(UIColor *)color;
+ (UIButton *)buttonWithTitle_ForNav:(NSString *)title;
+ (UIButton *)buttonWithUserStyle;
- (void)userNameStyle;
- (void)frameToFitTitle;
- (void)setUserTitle:(NSString *)aUserName;
- (void)setUserTitle:(NSString *)aUserName font:(UIFont *)font maxWidth:(CGFloat)maxWidth;
- (void)configFollowBtnWithUser:(User *)curUser fromCell:(BOOL)fromCell;
+ (UIButton *)btnFollowWithUser:(User *)curUser;
- (void)configPriMsgBtnWithUser:(User *)curUser fromCell:(BOOL)fromCell;
+ (UIButton *)btnPriMsgWithUser:(User *)curUser;
+ (UIButton *)tweetBtnWithFrame:(CGRect)frame alignmentLeft:(BOOL)alignmentLeft;
- (void)animateToImage:(NSString *)imageName;
//开始请求时,UIActivityIndicatorView 提示
- (void)startQueryAnimate;
- (void)stopQueryAnimate;
@end