随笔分类 - IOS5
摘要:想写这东西很久了,之前因为真的事很多,几乎没有办法去思考问题,工作也不顺。 不顺的原因是,总觉得自己和这个team不合。 前几天CEO和每个IOS的engineer都说了话(感觉好阴险的样子),然后我也有一句说一句。但是,还是没有放开来说,我把这个归咎为中国式教育的恶果:不敢发表自己的意见(or总是埋藏自己的意见)。 在谈话结束后我就有点不甘了,因为这么好的机会,可以充分表达自己意见的机会,就这样放弃了。真心觉得机会是“稍纵即逝”的,也对自己说了,以后在合适的场合一定要展现自己! 好了,说完这些,其实,我感受最深的是在这个team中的冲突太多了。我之前有工作经验,所以接触过的软件组...
阅读全文
摘要:-(CGSize)dynamicHeightForTextViewWithFont:(UIFont*)s_fontConstrainSize:(CGSize)s_size{//UItextView会有一个padding,为8//详情:http://www.1mima.com/uitextview使用-sizewithfontconstrainedtosizelinebreakmode计算高度不准确的解决方案///维护bmleung@weiwo.comCGSizeadapter_size=CGSizeMake(s_size.width-16,s_size.height);//宽度减去paddin
阅读全文
摘要:i use this solution :After finding this StackOverflow article:http://stackoverflow.com/questions/5543854/xcode-4-cant-locate-public-header-files-from-static-library-dependancyTurned out that setting my headers path to: "$(PROJECT_TEMP_DIR)/../UninstalledProducts/include" made it finally pr
阅读全文
摘要:solution:After further investigation we found that if you import a header file that in turn imports the same framework header file than the .pch already does, then CodeSense will break.link on stack overflow:http://stackoverflow.com/questions/2138047/xcode-code-loses-syntax-coloring
阅读全文
摘要:see:http://stackoverflow.com/questions/50467/how-do-i-size-a-uitextview-to-its-contentcode:CGRectframe=_textView.frame;frame.size.height=_textView.contentSize.height;_textView.frame=frame;note this line:One thing to note is that the correct contentSize is only availableafterthe UITextView has been a
阅读全文
摘要:apple developer library(chinese):http://www.apple.com.cn/developer/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/WindowsandViews/WindowsandViews.html#//apple_ref/doc/uid/TP40007072-CH8-SW4apple developer library(english,just property):http://developer.apple.com/library/ios/
阅读全文
摘要:[self.navigationBarsetBackgroundImage:[UIImageimageNamed:@"yourpngfile.png"]forBarMetrics:UIBarMetricsDefault];use this method;carefully : self.navigationBar may use in Subclass of UINavigationController,not self.navigationController.navigationBar
阅读全文