#import @interface TestCell : UITableViewCell@property (weak, nonatomic) IBOutlet UIButton *btnTest;@end#import "ViewController.h"#import "TestCell.h"...
分类:
其他好文 时间:
2015-07-17 11:20:48
阅读次数:
135
private void addEventListener(GameObject button){ EventDelegate eventDelegate = new EventDelegate(this, "OnChildClick"); eventDelegate.parameter...
分类:
其他好文 时间:
2015-07-16 13:21:23
阅读次数:
164
1.UILabel- UILabel的常见属性@property(nonatomic,copy) NSString *text;显示的文字@property(nonatomic,retain) UIFont *font;字体UIFont代表字体,常见创建方法有以下几个:+ (UIFont *)sys...
分类:
其他好文 时间:
2015-07-15 06:30:17
阅读次数:
137
调整Title字体位置
[button setTitleEdgeInsets:UIEdgeInsetsMake(10, 0, 0, 0)];
四个参数分别代表:上边界,左边界,下边界,右边界
修改UIButton setTitle字体颜色
[button addTarget:self action:@selector(clickAction) for...
分类:
移动开发 时间:
2015-07-14 20:32:28
阅读次数:
307
BFKit对常用于开发的类进行了扩展,整合了多个常用的控件和开发所需要的功能,是一个通用性的类库。集成后可以帮助更快的App开发。有兴趣的同学可以看看哦。http://code4app.com/ios/BFKit/549d08b4933bf087328bb02e
分类:
其他好文 时间:
2015-07-14 19:59:30
阅读次数:
153
直接上代码:/*
UIButton 的使用
*/ UIButton *aButton = [UIButton buttonWithType: UIButtonTypeCustom];
aButton.frame = CGRectMake(0, 0, 150, 100);
aButton.center = self.window.center; /...
分类:
其他好文 时间:
2015-07-14 10:07:30
阅读次数:
93
UIView停止交互(失去焦点):
设置userInteractionEnabled=NO, 获取交互设置YES.
可以应用于UIButton, UITextField等交互型控件....
分类:
移动开发 时间:
2015-07-13 20:48:09
阅读次数:
160
NSMutableArray修改元素, 使用-insertObject: atIndex: 和-replaceObjectAtIndex: withObject: 都可以, 即通过插入(insert)和替换(replace)可以实现.
示例:// 减少按钮监听
- (void) onSubBtnPressed:(UIButton*) sender {
NIDPRINTMETHODNAME(...
分类:
其他好文 时间:
2015-07-13 20:45:54
阅读次数:
153
设置UIButton上字体的对齐方式,不是用:
[Button.titleLabel setTextAlignment:UITextAlignmentCenter];
而是用:
[Button setContentHorizontalAlignment:UIControlContentHorizontalAlignmentCenter];
typed...
分类:
其他好文 时间:
2015-07-13 18:37:16
阅读次数:
95
//// AppDelegate.m// UI1_UIButton//// Created by zhangxueming on 15/6/30.// Copyright (c) 2015年 zhangxueming. All rights reserved.//#import "AppDe...
分类:
其他好文 时间:
2015-07-11 13:23:05
阅读次数:
116