摘要:
1、UITableView:UITableViewDelegate 新增内容:// Use the estimatedHeigh(估算高度)t methods to quickly calcuate guessed values which will allow for fast load times of the table.// If these methods are implemented, the above -tableView:heightForXXX calls will be deferred until views are ready to be displayed, so 阅读全文
摘要:
1、UINavigationBar: NSDictionary* attrs =@{NSForegroundColorAttributeName: [UIColorblackColor], NSFontAttributeName: [UIFontfontWithName:@"AmericanTypewriter"size:0.0], }; [[UINavigationBarappearance]setTitleTextAttributes:attrs]; [[UINavigationBarappearance]setTintColor:[UI... 阅读全文
摘要:
IOS7在UI方面发生了很大改变,所以感觉有必要重新审视的学习一下(新特性+以前未注意到的特性)。现在开始了:1、UIView:a)view.clearsContextBeforeDrawing=YES When the Clears Graphics Context (clearsContextBeforeDrawing) checkbox is selected, the drawingbuffer is automatically cleared to transparent black before the view is drawn. This behavior ensures th 阅读全文
摘要:
UIKit Dynamics的中文名称:有叫UIKit动力,也有叫UIKit动力模型和UIKit动态或者动态UI,叫什么名不要紧,理解就含义就可以了。什么是UIKit Dynamics ?UIKit动力提供了一个模拟真实世界中力学相关的动画和交互系统。比如重力、碰撞和吸附等。UIKit动力具有可组合、可重用和声明式的特点。我的理解就是把游戏开发中的物理引擎的搬过来了。首先简单看几点基础知识:1、UIDynamicAnimator:a、A dynamic animator provides physics-related capabilities and animations for its d 阅读全文
摘要:
1、fatal error: file '/Applications/Xcode5-DP.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDynamicAnimator.h' has been modified since the precompiled header '/Users/sumomochuufuku/Librar 阅读全文
摘要:
a.使用objc_allocateClassPair创建一个类Class const char * className = "Calculator"; Class kclass = objc_getClass(className); if (!kclass) { Class superClass = [NSObject class]; kclass = objc_allocateClassPair(superClass, className, 0); }b.使用class_addIvar添加一个成员变量 NSUInteger size; NSUInteger alignm. 阅读全文