ifish/Ifish/MyHelper/MyControl.h

31 lines
993 B
Objective-C
Executable File

//
// MyControl.h
// MusicPlayer_V1.0
// Copyright (c) 2014年 apple. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface MyControl : NSObject
+ (UILabel *)creatLabelWithFrame:(CGRect)frame
text:(NSString *)text ;
+ (UIButton *)creatButtonWithFrame:(CGRect)frame
target:(id)target
sel:(SEL)sel
tag:(NSInteger)tag
image:(NSString *)name
title:(NSString *)title;
//创建UIImageView
+ (UIImageView *)creatImageViewWithFrame:(CGRect)frame
imageName:(NSString *)name;
//创建UITextField
+ (UITextField *)creatTextFieldWithFrame:(CGRect)frame
placeHolder:(NSString *)string
delegate:(id <UITextFieldDelegate>)delegate
tag:(NSInteger)tag;
@end