自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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

原创 分享以及免费天气信息获取

http://www.mob.com/#/

2016-08-29 14:00:50 430

原创 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

原创 Android oom解决

mainfast中添加android:largeHeap="true"--在某些手机有效

2016-08-15 17:26:28 188

转载 Android实现圆形进度条

http://blog.csdn.net/Beyond0525/article/details/48181345

2016-08-05 10:24:12 229

转载 iOS蓝牙

https://github.com/coolnameismy/BabyBluetooth

2016-08-03 17:13:38 290

Android中javascrip交互

Android中javascrip交互

2017-03-09

imageload异步加载图片

异步加载图片使用的jar包

2016-02-29

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除