#pragma mark - 网络请求代理方式(异步)
- (IBAction)DelegateButtonDidClicked:(UIButton *)sender { // 1、拼接 urlString,网址里面必须写 http://
NSString *urlString = @"http://ipad-bjwb.bjd.com.cn/DigitalPublication/pub...
分类:
移动开发 时间:
2015-07-21 18:40:04
阅读次数:
133
(转)iOS编程——UITableViewCell高亮时其子视图的状态修改 (2012-06-13 22:38:39)转载▼UITableViewCell高亮时其子视图的状态修改。为了进行UI自定义,修改了UITableViewCell的accessoryView,如下UIButton * acce...
分类:
其他好文 时间:
2015-07-21 14:23:30
阅读次数:
76
需要使用第三方工具#import "GDataXMLNode.h"@property (nonatomic, strong) NSMutableArray *xmlDOMArray;- (IBAction)XMLDOMButtonDidClicked:(UIButton *)sender {
// 1、拿到 xml 文件的路径
NSString *path = [[NSBundle...
分类:
其他好文 时间:
2015-07-20 19:39:43
阅读次数:
89
- (IBAction)jsonSystemButtonDidClicked:(UIButton *)sender { self.JSONArray = [NSMutableArray array]; // 1、拿到 json 文件的路径
NSString *path = [[NSBundle mainBundle] pathForResource:@"student" ofTy...
分类:
Web程序 时间:
2015-07-20 19:37:50
阅读次数:
98
//_selectedBtn为全局变量- (void)selectBtnPressed:(UIButton *)sender{ _selectedBtn.selected = NO; sender.selected = YES; _selectedBtn = sender ;}
分类:
其他好文 时间:
2015-07-20 18:56:55
阅读次数:
75
// 初始化button并设置类型UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect];// 可以定义的UIButton类型有下面6种:// typedef enum {// UIButtonTypeC...
分类:
移动开发 时间:
2015-07-20 18:29:58
阅读次数:
132
第一天(hello world)1>UIView所有的控件都继承UIView,倒位置,宽度和高度..UIButton UILable2>UIViewController .h 是声明属性和方法的(对外开放的属性和方法) .m 是做实现IBAction & IBOutletIB:Interface.....
分类:
移动开发 时间:
2015-07-19 13:18:29
阅读次数:
112
场景:点赞功能这样的需求很常见,一般我们会考虑是否可以直接用UIButton实现,UIButton作为一个系统复合控件,外部是一个 View + UIControl 的容器,内部包含了 UILabel 和 UIImage、以及排版规则。用 UIButton 不好控制去做『赞』和『取消赞』切换时的动画...
分类:
其他好文 时间:
2015-07-18 15:19:16
阅读次数:
131
一、内边距UIButton有三个属性,分别可以设置按钮以及内部子控件的内边距1、contentEdgeInsets 如果是设置contentEdgeInsets, 会把UIImageView和UIlabel当做一个整体移动btn.contentEdgeInsets = UIEdgeInsetsMa....
分类:
其他好文 时间:
2015-07-18 00:22:54
阅读次数:
308