navigationController在pop时,指定pop到某个页面,这个页面要在navigationController栈里有的for(UIViewController*tempinself.navigationController.viewControllers){if([tempisKindOfClass:[需要退到哪个类类名class]]){[self.navigationControllerpopToViewController:tem..
分类:
其他好文 时间:
2014-10-17 15:44:40
阅读次数:
127
我们经常看到各种被双下划线环绕的方法,如__init__,它们就是魔术方法.
魔术方法是python语言预定好的"协议",不同魔术方法在不同场景下,会被隐式调用.我们通过重载这些方法,从而操控各种行为.
class A(object):
def __str__(self):
return "I am A,2333"
def __len__(self):
...
分类:
编程语言 时间:
2014-10-17 15:30:54
阅读次数:
494
解决办法在 生命周期函数viewDidAppear中设置即可1 - (void)viewDidAppear:(BOOL)animated2 3 {4 5 self.tableView.frame = CGRectMake(0, 20, 320, 480);6 7 }
分类:
移动开发 时间:
2014-10-17 15:28:19
阅读次数:
143
一。自定义navigationbar- (void)initNavigationBar{ [self.navigationController setNavigationBarHidden:YES]; UINavigationBar *bar = [[UINavigationBar al...
分类:
移动开发 时间:
2014-10-17 15:15:30
阅读次数:
198
使用webbrowser伪造referer的方法:webBrowser1.Navigate(url, "_self", null, "Referer:http://www.xxx.com") 这段时间一直研究怎么才能在 webbrowser中设置referer来路来伪造来路进行刷流量,可是最后...
1、注意空字符串的处理;2、注意是alphanumeric字符;3、字符串添加字符直接用+就可以; 1 class Solution: 2 # @param s, a string 3 # @return a boolean 4 def isPalindrome(self, ...
分类:
其他好文 时间:
2014-10-17 01:34:53
阅读次数:
216
ios 下自定义导航栏的BarButtonItem 会产生一些偏移问题,解决方案: 通过新建一个系统的带固定距离的Item来调节你的Item#define IOS7_NAVI_SPACE -10} [self.navigationItem setLeftBarButtonItems:[self...
分类:
移动开发 时间:
2014-10-17 00:24:53
阅读次数:
250
Self-taught 自我学习器实验报告1.Self-taught 自我学习实验描述 自我学习是无监督特征学习算法,自我学习意味着算法能够从未标注数据中学习,从而使机器学习算法能够获得更大数量的数据,因而更有可能取得更好的性能。在本实验中,我们将按照自我学习的步骤,使用稀疏自编码器和softmax...
分类:
其他好文 时间:
2014-10-17 00:23:43
阅读次数:
371
1.模版方法模式做题的列子:需求:有两个学生,要回答问题,写出自己的答案#encoding=utf-8__author__ = 'kevinlu1010@qq.com'class StudentA(): def answer1(self): print '题目一:XXXXXX' ...
分类:
编程语言 时间:
2014-10-16 22:58:53
阅读次数:
253
图片压缩:NSData *imageData =UIImageJPEGRepresentation(self.uploadImage , 0.55);NSString *file_name = [TimeUtilgetDateStringWithFormat:@"yyyy-MM-dd"];NSStr...
分类:
Web程序 时间:
2014-10-16 21:00:13
阅读次数:
199