- 博客(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 242
原创 Java中基本数据类型
byte(字节) 8 -128 - 127 0shot(短整型) 16 -32768 - 32768 0int(整型) 32 -2147483648-2147
2016-08-30 09:36:47 235
原创 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 898
原创 ios异步网络请求
-(void)getUrl{ NSString *urlS=@"http://211.149.184.79:8080/we/car/getAllCarMessageForPage.do?page=1&size=10"; NSURL *url=[NSURLURLWithString:[urlS stringByAddingPercentEscapesUsingEncoding
2016-08-29 14:29:25 696
原创 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 322
原创 iOS同步网络请求
-(void)getUrl{ NSString *urlS=@"http://211.149.184.79:8080/we/car/getAllCarMessageForPage.do?page=1&size=10"; NSURL *url=[NSURLURLWithString:[urlS stringByAddingPercentEscapesUsingEncoding
2016-08-29 10:53:07 458
原创 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 311
转载 ios监听上滑下滑作画优化
-(void)viewDidLoad{UISwipeGestureRecognizer *recognizer; recognizer = [[UISwipeGestureRecognizer alloc]initWithTarget:self action:@selector(handleSwipeFrom:)]; [recognizer setDirec
2016-08-19 16:04:22 333
原创 iOS画图
1.直线//1.获取上下文 CGContextRef ctx =UIGraphicsGetCurrentContext(); //1.1 设置线条的宽度 CGContextSetLineWidth(ctx,66); //1.2 设置线条的起始点样式 CGContextSetLineCap(ctx,kCGLineCapBu
2016-08-17 10:57:40 335
原创 iOS中为uilable设置点击事件
UITapGestureRecognizer *click1=[[UITapGestureRecognizeralloc]initWithTarget:selfaction:@selector(changeButtonForRi)];//必须设置这个 ri_shui.userInteractionEnabled=YES; [ri_shuiaddGestureRe
2016-08-16 13:33:02 623
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人