IOS笔记


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://nsobject.me/?p=151    

http://foredoomed.org/blog/2014/02/24/object-modeling-of-objective-c/

iOS 语音播放-切换听筒和扬声器类似微信


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值