摘要:
同一台笔记本下的客户端和服务端 TCPClient 客户端: // RootViewController.h#import <UIKit/UIKit.h>#import "AsyncSocket.h" //封装了基于tcp协议的socket编程//tcp协议是位于网络传输层的协议,规定客户端与服务端 阅读全文
posted @ 2016-07-11 23:48
代码始我快乐
阅读(827)
评论(0)
推荐(0)
摘要:
xib的 //不使用这种- (IBAction)button:(UIButton *)sender; //使用这种 @property (weak, nonatomic) IBOutlet UIButton *button; 在cell里面直接调用 [cell.button addTarget:se 阅读全文
posted @ 2016-07-11 21:19
代码始我快乐
阅读(250)
评论(0)
推荐(0)
摘要:
// RootViewController.m #import "RootViewController.h"#import "NextViewController.h"@interface RootViewController (){ NSMutableArray * dataSource;//数据 阅读全文
posted @ 2016-07-11 17:57
代码始我快乐
阅读(248)
评论(0)
推荐(0)
摘要:
利用NSMutableDictionary key值 来改变cell的状态 -(void)createUI{ table = [[UITableView alloc]initWithFrame:CGRectMake(0, 100, [UIScreen mainScreen].bounds.size. 阅读全文
posted @ 2016-07-11 17:39
代码始我快乐
阅读(313)
评论(0)
推荐(0)
摘要:
1、实现UITableView类似抽屉开关控制器的功能 2、使用NSUserDefaults实现cell中输入UIfield的保存功能 // RootViewController.h#import <UIKit/UIKit.h> @interface RootViewController : UIV 阅读全文
posted @ 2016-07-11 15:29
代码始我快乐
阅读(301)
评论(0)
推荐(0)
摘要:
NSDate * senddate=[NSDate date]; NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian]; NSDateComponen 阅读全文
posted @ 2016-07-11 14:47
代码始我快乐
阅读(630)
评论(0)
推荐(0)
摘要:
// placeholder 颜色 [field setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"]; // placeholder 字体大小 [field setValue:[UIFont boldSyste 阅读全文
posted @ 2016-07-11 14:38
代码始我快乐
阅读(232)
评论(0)
推荐(0)
摘要:
判断是否为null//尖括号 if ([regeocode.city isEqual:[NSNull class]]) { NSLog(@"123"); } //圆括号 if (regeocode.city == nil) { NSLog(@"345"); } 阅读全文
posted @ 2016-07-11 14:29
代码始我快乐
阅读(408)
评论(0)
推荐(0)
摘要:
1、添加按钮的点击事件和按下事件 [btn setImage:[UIImage imageNamed:@"NorMal.png"] forState:UIControlStateNormal]; //正常背景图片 [btn setImage:[UIImage imageNamed:@"Highlig 阅读全文
posted @ 2016-07-08 16:07
代码始我快乐
阅读(693)
评论(0)
推荐(0)
摘要:
[btn setImage:[UIImage imageNamed:@"test.png"] forState:UIControlStateNormal];btn.adjustsImageWhenHighlighted = NO; 阅读全文
posted @ 2016-07-08 15:50
代码始我快乐
阅读(1132)
评论(0)
推荐(0)
浙公网安备 33010602011771号