- 博客(8)
- 资源 (4)
- 收藏
- 关注
转载 iOS Quartz 各种绘制图形用法
// Only override drawRect: if you perform custom drawing.// An empty implementation adversely affects performance during animation.- (void)drawRect:(CGRect)rect{ CGContextRef context = UIGraphi
2014-11-17 14:39:03
404
原创 UIScrollView滚动获取停止点及禁止惯性滚动
UIScrollView实现Delegate#pragma mark - UIScrollViewDelegate- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView{ NSLog(@"scrollViewDidEndDecelerating:"); /* 获取当前scr
2014-11-14 10:11:21
5469
原创 在线程中对Surface清屏
SurfaceHolder surfaceHolder = monitor.tileView.getHolder(); Canvas canvas = surfaceHolder.lockCanvas(); canvas.drawColor(Color.TRANSPARENT,Mode.CLEAR); surfaceHolder.unlockCanvasAndPost(ca
2014-10-13 10:10:38
632
转载 detaching thread with interp frames (count=2)
Because the callback happens on some native thread, different from the VM thread which loads the library. The JNI implementation maintains a JNIEnvper thread, and puts the pointer in thread-local st
2014-09-25 14:01:53
1705
原创 UITableview的基本用法
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{ return [[m_historyDictionary allKeys] count];}- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInt
2014-08-18 13:54:39
407
原创 iOS多线程GCD的基本用法
// 后台执行: dispatch_async(dispatch_get_global_queue(0, 0), ^{ // something }); // 主线程执行: dispatch_async(dispatch_get_main_queue(), ^{ // something }); // 一次性执行: static dispatch_onc
2014-08-13 13:53:01
482
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人