-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTools.h
More file actions
29 lines (21 loc) · 771 Bytes
/
Tools.h
File metadata and controls
29 lines (21 loc) · 771 Bytes
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
//
// Tools.h
// StockChart
//
// Created by zhao on 16/8/3.
// Copyright © 2016年 zhao. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <AFNetworking.h>
#import <UIKit/UIKit.h>
typedef void(^PostRequestSuccessBlock)(id response);
typedef void(^PostRequestFailureBlock)(NSError *error);
typedef NS_ENUM(NSUInteger, ChartLineType)
{
ChartLineTypeKLine = 0,/**< K线图*/
ChartLineTypeBrokenLine,/**< 分时图*/
};
@interface Tools : NSObject
+ (void)postRequestWithUrl:(NSString *)url parameter:(NSDictionary *)parameter success:(PostRequestSuccessBlock)success failure:(PostRequestFailureBlock)failure;
+ (UILabel *)createLabelWithFrame:(CGRect)frame text:(NSString *)text font:(UIFont *)font textColor:(UIColor *)textColor;
@end