2011年6月13日

摘要: Delete .svn folders on your Mac Sometimes you need to get rid of .svn hidden folders on your Mac. In my case it was about resyncing my local working copy with client subversion repository. Everything was broken at both ends. A couple of terminal commands to get rid of unneeded svn tracks: cd /some/o 阅读全文
posted @ 2011-06-13 18:36 禚来强 阅读(691) 评论(0) 推荐(0)
摘要: UIImageView *imageview = [[UIImageView alloc] initWithFrame:CGRectMake(1, 1, 66.0f, 76.0f)]; imageview.tag=1; [imageview setImage:img]; imageview.layer.shadowColor=[UIColor blackColor].CGColor; imageview.userInteractionEnabled=YES; imageview.layer.shadowOpacity=0.5; imageview.layer.shadowOffset = CG 阅读全文
posted @ 2011-06-13 12:10 禚来强 阅读(1150) 评论(0) 推荐(0)
摘要: - (void)constructScatterPlot{// Create graph from themegraph = [[CPXYGraph alloc] initWithFrame:CGRectZero];CPTheme *theme = [CPTheme themeNamed: @"Dark Gradients"];[graph applyTheme:theme];scatterPlotView.hostedGraph = graph;graph.paddingLeft = 10.0;graph.paddingTop = 10.0;graph.paddingRi 阅读全文
posted @ 2011-06-13 11:23 禚来强 阅读(2714) 评论(1) 推荐(2)
摘要: NSDecimalNumber 是NSNumber的子类。 使用 [NSNumber numberWithDouble:]方法来格式我的NSNumber,但是,由于一些值比较大,我想要用科学计数法来表示。 NSDecimalNumber就提供了科学计数法的表示方法。 什么是科学计数法? 将一个数字表示成 (a×10的n次幂的形式),其中1≤a<10,n表示整数,这种记数方法叫科学记数法。 用幂的形式,有时可以方便的表示日常生活中遇到的一些较大的数,如:光的速度大约是300 000 000米/秒;全世界人口数大约是:6 100 000 000 这样的大数,读、写都很不方便,考虑到10的 阅读全文
posted @ 2011-06-13 10:41 禚来强 阅读(1149) 评论(0) 推荐(0)

导航