自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 iOS 技术点一 tableviewcell reuse .

A Closer Look at Table View CellsIf a cell object is reusable—the typical case—you assign it a reuse identifier (an arbitrary string) in the storyboard. At runtime, the table view stores cell objects i

2016-01-28 11:42:18 341

原创 iOS json

NSDictionary –> json stringNSDictionary * dic..NSData *jsonData = [NSJSONSerialization dataWithJSONObject:dic options:NSJSONWritingPrettyPrinted error:nil];NSString* jsonString = [[NSString alloc] ini

2015-12-09 10:39:20 400

原创 android ndk/jni

1.命令行编译 cd <project> $ <ndk>/ndk-buildant编译Call ndk-build from your -pre-build target, like this:<target name="-pre-build"> <exec executable="${ndk.dir}/ndk-build" failonerror="true"/></targe

2015-06-29 16:32:59 543

原创 Android Animation

一.Android 动画总结 1.动画分类 View Animation,Drawable Animation,Property Animation。1.1 View Animation (用于视图对象) translate位移动画 , rotate 旋转动画, alpha透明度动画, scale缩放动画,AnimationSet 组合动画。启动动画view.startAnimation

2015-06-26 16:57:55 346

原创 getSreenWH()

private void getSreenWH(){ // 获取屏幕宽高(方法1) int screenWidth = getWindowManager().getDefaultDisplay().getWidth(); // 屏幕宽(像素,如:480px) int screenHeight = getWindowManager().getDefaultDisplay().getHe

2015-05-08 15:25:43 404

原创 android mimetype

public static String getMimeTypeFormPath(String url){ String type = null; String extension = MimeTypeMap.getFileExtensionFromUrl(url); if (extension != null) { t

2015-05-08 13:48:35 400

原创 Modifying the Navigation Stack

NSMutableArray * viewControllers = [self.navigationController.viewControllers mutableCopy]; [viewControllers removeLastObject]; [viewControllers addObject:newController];[self.navigationController se

2015-04-27 15:31:09 493

原创 OC Base64

Base64 Encoded/Decoding a NSString ObjectEncoding NSString *plainString = @”iOS Developer Tips encoded in Base64”; NSData *nsdata = [plainString dataUsingEncoding:NSUTF8StringEncoding]; NSString *ba

2015-04-23 17:27:57 948

原创 NSDictionary - NSData - NSString conversion

1.NSDictionary - NSDataUse NSKeyedArchiver NSDictionary -> NSData: NSData *myData = [NSKeyedArchiver archivedDataWithRootObject:myDictionary];NSData -> NSDictionary: NSDictionary myDictionary = (NSD

2015-04-23 10:51:34 565

空空如也

空空如也

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

TA关注的人

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