iOS 5 以后 UINavigationController 可以 改变UINavigationBar导航条标题颜色和字体[self.navigationController.navigationBar setTitleTextAttributes:[NSDictionary dictionary...
分类:
其他好文 时间:
2014-11-28 17:56:45
阅读次数:
172
转自:http://www.cocoachina.com/industry/20140825/9450.html(via:玉令天下的Blog)本文讲述了UITableView、UICollectionView实现 self-sizing cell 布局的知识,以及如何用 InvalidationCo...
分类:
移动开发 时间:
2014-11-28 15:42:58
阅读次数:
292
让人蛋疼的block!
block对于其变量都会形成strong reference,对于self也会形成strong reference ,而如果self本身对block也是 strong reference 的话,就会形成 strong reference 循环,造成内存泄露,为了防止这种情况发生,在block外部应该创建一个week(__block) reference。
所以在...
分类:
其他好文 时间:
2014-11-28 10:11:27
阅读次数:
168
iframe里的js要操作父级窗口的dom,必须搞懂几个对象:parent是父窗口(如果窗口是顶级窗口,那么parent==self==top)top是最顶级父窗口(有的窗口中套了好几层frameset或者iframe)self是当前窗口(等价window)父级页面:index.html父窗口 .....
分类:
其他好文 时间:
2014-11-28 06:11:51
阅读次数:
975
NSString *path = [self.dataPath stringByAppendingPathComponent:@"dummy.plist"];NSMutableDictionary *dict = [[NSMutableDictionary alloc] initWithConten...
分类:
其他好文 时间:
2014-11-28 00:53:59
阅读次数:
238
相关资料:http://stackoverflow.com/questions/14489071/nsdictionary-release-triggers-valueforkey-return-value-releaseNSString *path = [self.dataPath stringB...
分类:
其他好文 时间:
2014-11-27 20:20:15
阅读次数:
204
My father was a self-taught mandolin player. He was one of the best string instrument players in our town. He could not read music, but if he heard a tune a few times, he could play it. When he was yo...
分类:
其他好文 时间:
2014-11-27 14:36:15
阅读次数:
230
Also known as self-consistent field theoryStudy the behavior of large and complex stochastic models by studying a simpler model.Such models consider a...
分类:
其他好文 时间:
2014-11-27 14:26:31
阅读次数:
205
fromPyQt4.Qtimport*fromPyQt4.QtGuiimport*fromPyQt4.QtCoreimport*importsysclassA(QWidget):def__init__(self,parnt=None):super(A,self).__init__(parnt)win...
分类:
其他好文 时间:
2014-11-27 14:22:19
阅读次数:
162
1.UINavigationControllerpopToViewController 对应popViewControllerAnimated:也可以使用:[self.navigationController popToRootViewControllerAnimated:YES][self.nav...
分类:
移动开发 时间:
2014-11-27 12:32:11
阅读次数:
383