码迷,mamicode.com
首页 >  
搜索关键字:note to self    ( 21530个结果)
外观模式
模式说明所谓外观模式就是提供一个统一的接口,用来访问子系统中的一群接口。模式结构图程序示例说明:灯光、荧屏、空调、电视一键开启、关闭代码:class Light(object): def on(self): print 'light turn on' def off(sel...
分类:其他好文   时间:2014-08-25 16:22:44    阅读次数:224
Iphone UIWebView加载网页开发
_webView=[[UIWebViewalloc]initWithFrame:self.view.frame];NSURLRequest*request=[[NSURLRequestalloc]initWithURL:[NSURLURLWithString:BAIDU]];[_webViewloadRequest:request];[self.viewaddSubview:_webView];
分类:Web程序   时间:2014-08-25 15:08:44    阅读次数:176
projecteuler---->problem=34----Digit factorials
Problem 34 145 is a curious number, as 1! + 4! + 5! = 1 + 24 + 120 = 145. Find the sum of all numbers which are equal to the sum of the factorial of their digits. Note: as 1! = 1 and 2! = 2 are...
分类:其他好文   时间:2014-08-25 11:59:14    阅读次数:243
Pro ASP.NET MVC 4, 4th edition Reading note---Part(1) DI
What I learned from Pro ASP.NET MVC 4 bookOpen source of Asp.net MVChttp://www.opensource.org/licenses/ms-pl.html1. Introduce new trends of web develo...
分类:Web程序   时间:2014-08-25 11:47:44    阅读次数:214
C# GMap.Net 计算多边形面积
Cédric Bignon :Let's note Points the points of the polygon (where Points[0] == Points[Points.Count - 1] to close the polygon).The idea behind the next...
分类:Web程序   时间:2014-08-25 11:29:04    阅读次数:1396
iOS8自动调整UITableView和UICollectionView布局
本文讲述了UITableView、UICollectionView实现self-sizing cell布局的知识,以及如何用InvalidationContext优化UICollectionView布局的更新。背景iOS越来越人性化了,用户可以在设置-通用-辅助功能中动态调整字体大小了。你会发现所有...
分类:移动开发   时间:2014-08-24 23:39:03    阅读次数:597
iOS7_关于UISwitch_01_如何添加一个UISwitch到界面上
1、首先我们先创建一个 SingleView application。2、我们可以用Inface Builder 来实现,也可以通过手码来实现。我们这次先通过手码来实现:第一步:首先我们在 xxxViewController.m文件中,为self添加一个UISwitch类型的属性,我们叫TA mai...
分类:移动开发   时间:2014-08-24 22:17:43    阅读次数:304
iOS alipay sdk(支付宝) web(wap/网页)回调黑屏,不完美解决方案
不完美解决方案...(黑屏1秒恢复...)原创保留:http://www.cnblogs.com/Leetvin/p/3932865.html原因:wap回调 如果加入UINavigationController就会黑屏#if ! __has_feature(objc_arc)self.viewCo...
分类:移动开发   时间:2014-08-24 16:38:12    阅读次数:221
iOS中多线程_06_GCD其它用法
一、延时执行1、iOS常见的延时执行有2种方式 (1)调用NSObject的方法[self performSelector:@selector(run) withObject:nil afterDelay:2.0];// 2秒后再调用self的run方法 (2)使用GCD函数dispatch_a.....
分类:移动开发   时间:2014-08-24 12:52:32    阅读次数:241
动态获取键盘高度
//在遇到有输入的情况下。由于现在键盘的高度是动态变化的。中文输入与英文输入时高度不同。所以输入框的位置也要做出相应的变化#pragma mark - keyboardHight-(void)viewWillAppear:(BOOL)animated{ [self registerForKey...
分类:其他好文   时间:2014-08-24 09:09:52    阅读次数:121
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!