- 博客(14)
- 资源 (2)
- 收藏
- 关注
转载 ios中UItextfield
设置起始光标右移: UILabel * leftView = [[UILabel alloc] initWithFrame:CGRectMake(10,0,7,26)]; leftView.backgroundColor = [UIColor clearColor]; textField.leftView = leftView; textField.leftViewMode = UI
2016-08-30 16:36:52 255
原创 Java中基本数据类型
byte(字节) 8 -128 - 127 0 shot(短整型) 16 -32768 - 32768 0 int(整型) 32 -2147483648-2147
2016-08-30 09:36:47 238
原创 iOS中解析json数据
同Android中的jsonarray和jsonobject相同,iOS中json分为nsarray和jsonobject, []--------jsonarray/nsarray; {}-------jsonobject/jsonobject 实例代码: json数据如下: {"message":"获取成功","data":[{"messageId":34,"messageTitle"
2016-08-29 14:58:34 926
原创 ios异步网络请求
-(void)getUrl{ NSString *urlS=@"http://211.149.184.79:8080/we/car/getAllCarMessageForPage.do?page=1&size=10"; NSURL *url=[NSURL URLWithString:[urlS stringByAddingPercentEscapesUsingEncoding
2016-08-29 14:29:25 702
原创 get和post请求,Android
//post请求 new Thread(){ public void run() { try { URL url=new URL("http://211.149.184.79:8080/we/car/getAllCarMessageForPage.do?page=1&size=10"); HttpURLConnection mConnection=(HttpURLConnection)
2016-08-29 13:04:48 329
原创 iOS同步网络请求
-(void)getUrl{ NSString *urlS=@"http://211.149.184.79:8080/we/car/getAllCarMessageForPage.do?page=1&size=10"; NSURL *url=[NSURL URLWithString:[urlS stringByAddingPercentEscapesUsingEncoding
2016-08-29 10:53:07 467
原创 Xcode7-“App Transport Security has blocked a cleartext HTTP (http://) resource load since it is inse
1.在Info.plist中添加 NSAppTransportSecurity 类型 Dictionary ; 2.在 NSAppTransportSecurity 下添加 NSAllowsArbitraryLoads 类型Boolean ,值设为 YES;
2016-08-29 10:51:57 314
转载 ios监听上滑下滑作画优化
-(void)viewDidLoad{ UISwipeGestureRecognizer *recognizer; recognizer = [[UISwipeGestureRecognizer alloc]initWithTarget:self action:@selector(handleSwipeFrom:)]; [recognizer setDirec
2016-08-19 16:04:22 353
原创 iOS画图
1.直线 //1.获取上下文 CGContextRef ctx = UIGraphicsGetCurrentContext(); //1.1 设置线条的宽度 CGContextSetLineWidth(ctx, 66); //1.2 设置线条的起始点样式 CGContextSetLineCap(ctx,kCGLineCapBu
2016-08-17 10:57:40 345
原创 iOS中为uilable设置点击事件
UITapGestureRecognizer *click1=[[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(changeButtonForRi)]; //必须设置这个 ri_shui.userInteractionEnabled=YES; [ri_shui addGestureRe
2016-08-16 13:33:02 636
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人