码迷,mamicode.com
首页 >  
搜索关键字:self    ( 14215个结果
转 UINavigationController标题文字颜色
iOS 5 以后 UINavigationController 可以 改变UINavigationBar导航条标题颜色和字体[self.navigationController.navigationBar setTitleTextAttributes:[NSDictionary dictionary...
分类:其他好文   时间:2014-11-28 17:56:45    阅读次数:172
[转]iOS8 自动调整UITableView和UICollectionView布局
转自:http://www.cocoachina.com/industry/20140825/9450.html(via:玉令天下的Blog)本文讲述了UITableView、UICollectionView实现 self-sizing cell 布局的知识,以及如何用 InvalidationCo...
分类:移动开发   时间:2014-11-28 15:42:58    阅读次数:292
当block中用到self时,需谨慎!
让人蛋疼的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加载的子页面里面获取父级元素窗口以及元素的高度
iframe里的js要操作父级窗口的dom,必须搞懂几个对象:parent是父窗口(如果窗口是顶级窗口,那么parent==self==top)top是最顶级父窗口(有的窗口中套了好几层frameset或者iframe)self是当前窗口(等价window)父级页面:index.html父窗口 .....
分类:其他好文   时间:2014-11-28 06:11:51    阅读次数:975
NSDICTIONARY获取内容的CRASH
NSString *path = [self.dataPath stringByAppendingPathComponent:@"dummy.plist"];NSMutableDictionary *dict = [[NSMutableDictionary alloc] initWithConten...
分类:其他好文   时间:2014-11-28 00:53:59    阅读次数:238
NSDictionary获取内容的crash
相关资料: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 - 父爱无边
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
Mean-field theory
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
pyqt2015有效范围
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
IOS 页面之间的跳转
1.UINavigationControllerpopToViewController 对应popViewControllerAnimated:也可以使用:[self.navigationController popToRootViewControllerAnimated:YES][self.nav...
分类:移动开发   时间:2014-11-27 12:32:11    阅读次数:383
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!