1 + (UIBarButtonItem *)itemWithIcon:(NSString *)icon highIcon:(NSString *)highIcon target:(id)target action:(SEL)action2 {3 UIButton *button = [UI...
分类:
其他好文 时间:
2015-07-27 01:51:09
阅读次数:
118
1.NSBundle1>一个NSBundle代表一个文件夹,利用NSBundle能访问对应的文件夹2>利用mainBundle就可以访问软件资源包中的任何资源3>模拟器应用程序的安装路径2.UIImageView和UIButton1>使用场合*UIImageView:如果仅仅是显示图片,不需要监听图...
分类:
移动开发 时间:
2015-07-26 17:06:58
阅读次数:
110
首先,定义好字体样式plist配置文件然后写一个类,封装plist字体配置文件读取、给UILabel设置字体、UIButton设置字体、UITextfiled设置字体 ....#import @interface FontManager : NSObject@property (nonatomic,...
分类:
其他好文 时间:
2015-07-23 00:40:31
阅读次数:
89
第一种方法:根据传入函数的参数对象的tag属性区分
比如 多个按钮执行同一个方法,但是不同的方法执行时,里面的逻辑又不一样 那就得加以区分 这时可以用tag来区别
//再新建一个Button
UIButton * button2 = [UIButton buttonWithType:UIButtonTypeSystem];
button2.frame = CGRectMake(...
分类:
其他好文 时间:
2015-07-22 20:53:38
阅读次数:
86
#import "ShowTimeViewController.h"@interface ShowTimeViewController ()@property (weak, nonatomic) IBOutlet UIButton *btnBigen;@property (weak, nonatom...
分类:
Web程序 时间:
2015-07-22 20:29:23
阅读次数:
124
-?(void)viewDidLoad?{
????[super?viewDidLoad];
??
????
//????static?const?char?associatedButtonkey;
????
????
????
????UIButton?*btn?=?[UIButton?buttonWithT...
分类:
其他好文 时间:
2015-07-22 16:40:54
阅读次数:
393
第二天*******图片的放大,和缩小 (去掉自动的布局)-(IBAction ) zoomFrame:(UIbutton *) button{ CGRect frame= self.iconButton.frame; // CGRect frame= self.iconButton.bound.....
分类:
移动开发 时间:
2015-07-21 20:17:22
阅读次数:
229
同步的 get 请求#pragma mark - 同步的 get 请求
- (IBAction)GETSynButtonDidClicked:(UIButton *)sender { // 1、网址里面必须写 http://
NSString *urlString = @"http://ipad-bjwb.bjd.com.cn/DigitalPublication/publish/Ha...
分类:
移动开发 时间:
2015-07-21 18:41:20
阅读次数:
178
同步的 post 请求#pragma mark - 同步的 post 请求
- (IBAction)POSTSynButtonDidClicked:(UIButton *)sender { // 1、拼接 baseUrlString
NSString *baseUrlString = @"http://ipad-bjwb.bjd.com.cn/DigitalPublication/pu...
分类:
移动开发 时间:
2015-07-21 18:39:02
阅读次数:
122