cd /Users/soarmobile/Downloads/cocos2d-x-2.2.3/tools/project-creator
./create_project.py -project MyGame -package com.MyCompany.AwesomeGame -language cpp
创建项目文件夹目录为: project 项目名为MyGame 项目包名:com.MyCompany.AwesomeGame 选用语言:cpp
CoreBluetooth
检索外设周边的UUID
- (void)retrievePeripherals:(NSArray *)peripheralUUIDs NS_DEPRECATED(NA, NA,5_0,7_0);
TableViewCell的cell样式
cell.accessoryType = UITableViewCellAccessoryNone;//cell没有任何的样式
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;//cell的右边有一个小箭头,距离右边有十几像素;
cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton;//cell右边有一个蓝色的圆形button;
cell.accessoryType = UITableViewCellAccessoryCheckmark;//cell右边的形状是对号;
//无色
cell.selectionStyle = UITableViewCellSelectionStyleNone;
//蓝色
cell.selectionStyle = UITableViewCellSelectionStyleBlue;
//灰色
cell.selectionStyle = UITableViewCellSelectionStyleGray;
设置tableViewCell间的分割线的颜色
[theTableView setSeparatorColor:[UIColor xxxx ]];
UITableViewCellSeparatorStyle有如下几种
typedef enum {
UITableViewCellSeparatorStyleNone,
UITableViewCellSeparatorStyleSingleLine,
UITableViewCellSeparatorStyleSingleLineEtched
} UITableViewCellSeparatorStyle;
更多有关cell的猛击这里
ALAssetsGroup * group = self.assetsGroupArray[0];
DDLOG(@"imagePicker group = %@",group);
[group setAssetsFilter:[ALAssetsFilter allPhotos]];
[group enumerateAssetsUsingBlock:^(ALAsset *result, NSUInteger index, BOOL *stop) {
if (result) {
LDCommunityImagePickerModel * model = [[LDCommunityImagePickerModel alloc] init];
model.asset = result;
[_assetArray insertObject:model atIndex:0];
}
}];
先获取 所有相册
再用这段代码 获取 某一个相册里面的 所有照片信息
void (^assetsGroupsEnumerationBlock)(ALAssetsGroup *, BOOL *) = ^(ALAssetsGroup *assetsGroup, BOOL *stop) {
if(assetsGroup) {
_photoLibrary_error = @"";
[assetsGroup setAssetsFilter:[ALAssetsFilter allPhotos]];
if(assetsGroup.numberOfAssets > 0) {
[_assetsGroupArray addObject:assetsGroup];
}
}
};
[self.assetsLibrary enumerateGroupsWithTypes:ALAssetsGroupSavedPhotos usingBlock:assetsGroupsEnumerationBlock failureBlock:^(NSError *error) {
DDLOG(@"error = %@ and %@",error.userInfo[NSLocalizedDescriptionKey],error.userInfo[NSLocalizedFailureReasonErrorKey]);
_photoLibrary_error = error.userInfo[NSLocalizedFailureReasonErrorKey];
}];
我这个是 获取相机胶卷的相册 Types换一下就行了
http://stackoverflow.com/questions/3074248/properties-and-instance-variables-in-objective-c-2-0
http://blog.csdn.net/shang_ri_la/article/details/25100829
http://acm.tzc.edu.cn/acmhome/projectList.do?method=projectNewsDetail&nid=2
http://www.cocoachina.com/industry/20130701/6514.html
http://www.jianshu.com/p/7ea8f2b99abe
http://www.jianshu.com/p/ec6a037e4c6b
http://www.jianshu.com/p/6222332c3a11?utm_campaign=hugo&utm_medium=reader_share&utm_content=note
Linux C编程一站式学习
http://blogimg.chinaunix.net/blog/upfile2/101026210032.pdf
http://blog.csdn.net/lqq200912408/article/details/66973459 项目管理http://duchengjiu.iteye.com/blog/2041391
http://foredoomed.org/blog/2014/02/24/object-modeling-of-objective-c/