- 博客(34)
- 资源 (22)
- 收藏
- 关注
原创 【Foundation-62-1】#import <Foundation/NSRange.h>范围
// NSRange 的结构体typedef struct _NSRange { NSUInteger location; NSUInteger length;} NSRange; NSRange theRange = NSMakeRange(2, 4); NSUInteger loc = theRange.location; // 起始位
2015-09-30 19:32:34 295
原创 【Foundation-37-2】#import <Foundation/NSIndexSet.h>可变索引集合
@interface NSMutableIndexSet :NSIndexSet { @protected void *_reserved;}- (void)addIndexes:(NSIndexSet *)indexSet;// 添加集合- (void)removeIndexes:(NSIndexSet *)indexSet;// 移
2015-09-29 23:58:52 308
原创 【Foundation-37-1】#import <Foundation/NSIndexSet.h>不可索引集合
NSIndexSet 用来让你从某个 data structure 里面提取一部分东西出来成为一个新的东西。比如你有一个 NSArray, 里面是(one, two, three, four, five)然后你造了个 indexSet 的内容是 0,1,2,4然后你把它套到那个 array 上,就是 (one, two,three,five)@interface
2015-09-29 23:51:20 321
原创 【Foundation-36-1】#import <Foundation/NSIndexPath.h>树结构
NSIndexPath 让你精确指定一个树结构 data structure 里面的某个节点的数据比如你有一个 NSArray, 里面很多节点,每个节点又是一个 NSArray,每个节点的这个里面又是一个NSArray,然后下面又是一个 NSArray这样简单说起来,你有一个四层的 NSarray ,每层下面都有好多个 NSArray。然后你造一个 NSIndexPath 1.3.
2015-09-29 22:23:55 321
原创 【UIKit-110-9】#import <UIKit/UITableView.h>数据源
@protocol UITableViewDataSourceNSObject>@required// section 中有多少行- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;// cell- (UITabl
2015-09-29 21:36:04 273
原创 【UUIKit-110-8】#import <UIKit/UITableView.h>代理方法
@protocol UITableViewDelegateNSObject,UIScrollViewDelegate>@optional【cell view 展示与隐藏】- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell
2015-09-29 21:29:36 353
原创 【UIKit-110-7】#import <UIKit/UITableView.h>提前注册
@interface UITableView :UIScrollView NSCoding>【注册cell】- (void)registerNib:(UINib *)nib forCellReuseIdentifier:(NSString *)identifierNS_AVAILABLE_IOS(5_0);- (void)registerClass:(Class
2015-09-28 23:53:54 250
原创 【UIKit-110-6】#import <UIKit/UITableView.h>外观
@interface UITableView :UIScrollView NSCoding>【索引外观】具体使用见dataSource@property (nonatomic)NSInteger sectionIndexMinimumDisplayRowCount;
2015-09-28 23:45:15 388
原创 【UIKit-110-5】#import <UIKit/UITableView.h>选中行
【选中行】@interface UITableView :UIScrollView NSCoding>- (NSIndexPath *)indexPathForSelectedRow; // 选中的行- (NSArray *)indexPathsForSelectedRowsNS_AVAILABLE_IOS(5_0);//
2015-09-28 22:59:07 294
原创 【UIKit-110-4】#import <UIKit/UITableView.h>编辑模式
【编辑状态】@interface UITableView :UIScrollView NSCoding>@property (nonatomic,getter=isEditing) BOOL editing; // default is NO. - (void)setEditing:(BOOL)editing animat
2015-09-27 16:37:15 339
原创 【UIKit-110-3】#import <UIKit/UITableView.h>增删改移
【增删改移】@interface UITableView : UIScrollView - (void)beginUpdates; // 在插入,删除,编辑动画开始- (void)endUpdates; // 与上一个同步使用//必须确保数据源与下面的方法改变一致。//针对section- (void)insertSect
2015-09-27 16:10:42 308
原创 【UIKit-110-2】#import <UIKit/UITableView.h>获取数据与滚动
【获取数据】@interface UITableView : UIScrollView - (void)reloadData; // 更新表内容- (void)reloadSectionIndexTitlesNS_AVAILABLE_IOS(3_0); // 插入或者删除,更新部分表,而不是全部。
2015-09-27 13:20:48 340
原创 【UIKit-110-1】#import <UIKit/UITableView.h> 基础创建
@interface UITableView :UIScrollView NSCoding>【基础创建】- (instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style; @property (nonatomic,readonly) UITableViewS
2015-09-27 12:13:13 358
原创 【UIKit-93-2】#import <UIKit/UIScrollView.h>
#import @protocol UIScrollViewDelegateNSObject>@optional【滚动】- (void)scrollViewDidScroll:(UIScrollView *)scrollView;- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollVie
2015-09-27 01:07:33 357
原创 【UIKit-93-1】#import <UIKit/UIScrollView.h>
UIKIT_EXTERNconst CGFloat UIScrollViewDecelerationRateNormalNS_AVAILABLE_IOS(3_0);UIKIT_EXTERNconst CGFloat UIScrollViewDecelerationRateFastNS_AVAILABLE_IOS(3_0);@class UIEvent,U
2015-09-26 22:37:06 347
原创 【UIKit-125-9】#import <UIKit/UIViewController.h>
【自动布局Guide】@interface UIViewController (UILayoutSupport)//自动布局的时候,以考虑 bar 的高度。 把下面两个看成bar 的view@property(nonatomic,readonly,retain)idUILayoutSupport> topLayoutGuide
2015-09-26 19:46:00 462
原创 【UIKit-125-8】#import <UIKit/UIViewController.h>
【VC转场代理】@protocol UIViewControllerTransitioningDelegate;@interface UIViewController(UIViewControllerTransitioning)//待研究 UIViewControllerTransitioningDelegate@prop
2015-09-26 19:31:46 348
原创 【UIKit-125-7】#import <UIKit/UIViewController.h>
【更新约束,VC版】@interface UIViewController (UIConstraintBasedLayoutCoreMethods)//更新约束,调用所有子视图的updateConstraints//VC中在 viewWillAppear之后,在 viewWillLayoutSubviews之前
2015-09-26 19:21:28 359
原创 【UIKit-125-6】#import <UIKit/UIViewController.h>
【子视图控制器的lifeCycle】@interface UIViewController (UIContainerViewControllerCallbacks)- (BOOL)shouldAutomaticallyForwardAppearanceMethodsNS_AVAILABLE_IOS(6_0);//该方法返回NO则childVi
2015-09-26 19:10:31 515
原创 【UIKit-125-4】#import <UIKit/UIViewController.h>
UIKIT_EXTERNNSString *const UIViewControllerHierarchyInconsistencyExceptionNS_AVAILABLE_IOS(5_0);@interface UIViewController (UIContainerViewControllerProtectedMethods)
2015-09-25 23:41:02 341
原创 【UIKit-125-3】#import <UIKit/UIViewController.h>
【edit/done 切换的button item】@interface UIViewController (UIViewControllerEditing)@property(nonatomic,getter=isEditing)BOOL editing;- (void)setEditing:(BOOL)editing animated:(BOOL)anima
2015-09-25 22:08:56 316
原创 【UIKit-125-2】#import <UIKit/UIViewController.h>
【屏幕旋转】@interface UIViewController (UIViewControllerRotation)带研究。+ (void)attemptRotationToDeviceOrientationNS_AVAILABLE_IOS(5_0); [UIViewController attemptRotationToDevic
2015-09-25 19:53:32 353
原创 【UIKit-125-1】#import <UIKit/UIViewController.h>
UIKIT_EXTERN NSString *const UIViewControllerShowDetailTargetDidChangeNotificationNS_AVAILABLE_IOS(8_0);interface UIViewController : UIResponder 【视图生命周期】- (void)loadView; 1
2015-09-25 19:07:00 371
原创 【UIKit-124-11】#import <UIKit/UIView.h>
【配合自动布局】@interface UIView (UIConstraintBasedCompatibility) 【自动布局必须是NO】- (BOOL)translatesAutoresizingMaskIntoConstraintsNS_AVAILABLE_IOS(6_0);// Default YES- (void)setTranslatesAuto
2015-09-24 20:35:25 262
原创 【UIKit-124-10】#import <UIKit/UIView.h>
【更新约束】基本不需要写。待研究。0.0@interface UIView (UIConstraintBasedLayoutCoreMethods) - (void)updateConstraintsIfNeeded NS_AVAILABLE_IOS(6_0); - (void)updateConstraints NS_AVAILABLE_IOS(6_0);
2015-09-24 00:20:39 288
原创 【UIKit-124-9】#import <UIKit/UIView.h>
【布局限制】@interface UIView (UIConstraintBasedLayoutInstallingConstraints)- (NSArray *)constraintsNS_AVAILABLE_IOS(6_0);父视图添加约束,对子视图做约束。view1的参数 对比(可以等于,大于等于...) view2的参数 *
2015-09-23 22:45:34 328
原创 【UIKit-124-8】#import <UIKit/UIView.h>
【移动视图偏移】@interface UIView (UIViewMotionEffects)具体看 UIMotionEffect 部分- (void)addMotionEffect:(UIMotionEffect *)effectNS_AVAILABLE_IOS(7_0);- (void)removeMotionEffect:(UIMotionEffect *
2015-09-23 22:23:39 558
原创 【UIKit-124-7】#import <UIKit/UIView.h>
【手势】@interface UIView (UIViewGestureRecognizers)@property(nonatomic,copy)NSArray *gestureRecognizers;// 控件上的所以手势- (void)addGestureRecognizer:(UIGestureRecognizer*)gestureRe
2015-09-23 22:14:45 335
原创 【UIKit-124-6】#import <UIKit/UIView.h>
【关键帧动画】@interface UIView (UIViewKeyframeAnimations)//大框架,关键帧动画+ (void)animateKeyframesWithDuration:(NSTimeInterval)duration delay:(NSTimeInterval)delay options:(UIViewKeyframeAnimation
2015-09-23 21:56:01 416
原创 【UIKit-124-5】#import <UIKit/UIView.h>
【动画-BLOCK】@interface UIView(UIViewAnimationWithBlocks)一般用第二个就差不多了。1、一般动画+ (void)animateWithDuration:(NSTimeInterval)duration animations:(void (^)(void))animations; [UIView animateWith
2015-09-23 21:06:38 308
原创 【UIKit-124-4】#import <UIKit/UIView.h>
【动画一般属性】@interface UIView(UIViewAnimation)+ (void)beginAnimations:(NSString *)animationID context:(void *)context; + (void)commitAnimations;
2015-09-23 20:13:28 419
原创 【UIKit-124-3】#import <UIKit/UIView.h>
【视图渲染】@interface UIView(UIViewRendering)- (void)drawRect:(CGRect)rect;// 重绘- (void)setNeedsDisplay;// 标记需要展示- (void)setNeedsDisplayInRect:(CGRect)rect;// 展示【裁剪】
2015-09-23 00:32:51 414
原创 【UIKit-124-2】#import <UIKit/UIView.h>
【层级关系】@interface UIView(UIViewHierarchy)@property(nonatomic,readonly) UIView *superview;@property(nonatomic,readonly,copy) NSArray *subviews;//遍历控件用@prop
2015-09-22 00:40:38 474
原创 【UIKit-124-1】#import <UIKit/UIView.h>
【UIView -基本属性与方法】@interface UIView :UIResponder NSCoding,UIAppearance,UIAppearanceContainer,UIDynamicItem,UITraitEnvironment,UICoordinateSpace> + (Class)
2015-09-21 23:49:12 672
项目管理知识体系指南【PMBOK第六版】(中文)
2018-07-12
Gprint 条码机 TSPL 中文编程手册(蓝牙打印机可编程手册).pdf
2018-05-04
C程序设计语言(第2版*新版)(美)Brian W.Kernighan 、Dennis M.Ritchie
2016-08-15
SPUD简介-ihower
2015-10-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人