zoukankan      html  css  js  c++  java
  • 今日笔记 待整理

    1. http://www.cocoachina.com/bbs/read.php?tid-104636-fpage-3.html
    检测当前网络的类型,3g,2g,wifi,以及速度测试
    2.
    No architectures to compile for (ONLY_ACTIVE_ARCH=YES,active arch = x86_64,VALID_ARCHS=i386)出现该错误的解决方法:
    (1)http://www.cocoachina.com/bbs/read.php?tid-300693-fpage-2.html
    (2)http://www.th7.cn/Program/IOS/201412/328283.shtml
    3. 设置图片的拉伸方法:
    http://www.cocoachina.com/bbs/read.php?tid-300686-fpage-2.html设置图片拉伸效果
    4. 更改MJRefresh添加功能背景图片 :https://github.com/shaw2014/ZSDRefreshView
    5.注册cell的方法:
    (1)系统自定义cell的注册方法 :  [self.theTable registerClass:[UITableViewCell class] forCellReuseIdentifier:@"111"];使用:
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"111" forIndexPath:indexPath];
                          return   cell; 
    }
    (2) 使用xib方式注册cell的方法
    注册:    [self.tableView registerNib:[UINib nibWithNibName:@"MusicListTableViewCell" bundle:nil] forCellReuseIdentifier:@"MusicListTableViewCell"];
    使用:
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {          MusicListTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MusicListTableViewCell" forIndexPath:indexPath];          DetailSong *detail = self.detailArray[indexPath.row];     
        cell.singerName.text = detail.title;    
        cell.songName.text = detail.author;     
        return cell;
    6. UITableView的复用机制
    http://cache.baiducontent.com/c?m=9d78d513d98512ff06ba837f7d528c315c4381132ba7da020fd2843e92732a40506793ac57250775d5d27d1716d94f4b99862103351457c18f8fc814d2e1d46e6d9f26476d01d61f4f860eafbc1764977c875a9ef34ea1a7a33398a8d3d0d55350c94e563ac6abda0457099c38b6476abde7844d1f5b17baeb30&p=9e6c8d15d9c347ae02fbc7710f5c86&newp=cb7dda15d9c347ae01b4c7710f0d94231610db2151d6d14c26&user=baidu&fm=sc&query=tableView%B8%B4%D3%C3%B5%C4%D4%AD%C0%ED&qid=db48cb620000167e&p1=1
    7. coredata 多表查询 https://github.com/AugustRush/ARCoreData
    8.
    随机数的获取 (1)、获取一个随机整数范围在:[0,100)包括0,不包括100
    int x = arc4random() % 100;
    (2)、  获取一个随机数范围在:[500,1000),包括500,不包括1000
    int y = (arc4random() % 501) + 500;
    (3)、获取一个随机整数,范围在[from,to),包括from,不包括to
    -(int)getRandomNumber:(int)from to:(int)to
    {
        return (int)(from + (arc4random() % (to – from + 1)));
    }
    9.实现树状型目录:  http://code4app.com/ios/多级树形目录列表/4fbe7c066803fa8f4d000000
    10. 左划cell,出现两个按钮,一个弹出actionsheet列表,另一个是删除按钮  demo http://code4app.com/ios/DAContextMenuTableViewController/521c2d176803fa781a000000
    11.   点击cell 无限多层tableView,每个view上显示连个tableView
    http://code4app.com/ios/InfiniteTreeView/537c6e11933bf0611f8b4c9a
    12.  实现点击cell展开新的cell,展开后空心原点变成实心的:
    http://code4app.com/ios/Nested-Table/50003e7c6803fa9203000000
    12(2) cell展开 http://code4app.com/ios/5121cac66803fae949000002
     (3) cell展开  http://code4app.com/ios/50651c8c6803fa8a01000002
     (4) cell展开  http://code4app.com/ios/53845f8a933bf0740a8b458a
    13. code4 给每一个cell的group添加边框,,,http://code4app.com/ios/509fa8776803fa5254000000
    14. 两个scrollView和两个tableView    http://code4app.com/ios/Two-Tables-in-ScrollView/4fc87d1c6803fa9868000000
    15. 横竖表格制定,同时实现横竖滑动时保证一侧不变   http://code4app.com/ios/536af1fb933bf015218b4bc4
    16. 简单瀑布流 下拉加载   http://code4app.com/ios/518b6aeb6803fae058000000
    (2) 图文混编瀑布流    http://code4app.com/ios/5313dd30933bf0c50d8b55b7
    (3)不同方式实现瀑布流效果 http://code4app.com/ios/4fdfecd96803fa117f000000
    (4)瀑布流效果 http://code4app.com/ios/53f16731933bf0e54f8b5501
    17. 简单的阅读器 http://code4app.com/ios/5082a4976803fafd0a000000
    18. 给UILabel的文字加上各种各样的艺术字体效果,包括阴影(内阴影和外阴影)、渐变色彩、彩虹、浮雕效果等等,而且使用十分简单,能够完全代替UILabel。是一个功能十分强大又简单易用的类库   http://code4app.com/ios/4f901bee06f6e78f39000002
    19 原状图,折现图, 实现数据统计图中的柱状图和曲线图,可以同时显示两组数据用于比较   http://code4app.com/ios/52a92663cb7e8458178b6600
     
    20。  item 2 好用的终端,常用的mac配置 http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece7631046893b4c4380146d96864968d4e414c422461f143dbfec7271565392d82f2747f41802bded602571507be9dad58940dcb8932f288333712d5cd04e4d8048b8cb377e8777cf4de8df19&p=cb73c32980934eaf59ef852d0214cd&newp=9b65890785cc43ff57ed957c1e5e9c231610db2151d7d2&user=baidu&fm=sc&query=mac+item2&qid=ae2ff0670003b931&p1=2
     免费下载地址 : http://www.iterm2.com/
     
    //  第二类
    常用   mac软件下载
     
     21.插件管理,工具Alcatraz   
     软件 Alcatraz  也可以在终端中执行代码安装 curl -fsSL https://raw.githubusercontent.com/supermarin/Alcatraz/master/Scripts/install.sh | sh (2) 安装成功后在Xcode中 window --- PackageManager  -- 下搜索cocopods ------ install  ----OK
     
     22.  The Unarchiver  mac下默认是不支持wind的压缩文件  下载路径  :  http://wakaba.c3.cx/s/apps/unarchiver
     
    23. 文件编辑器,, Sublime text 
     
    24 mac下最好用的视频播放器  。。MPlayerX
     
     
     
     
     
     
     
     
     
     
     
     
     
     
  • 相关阅读:
    1. DataBinding
    DataBinding 笔记
    做过的自定义 View
    自定义View
    拖拖看小游戏
    UIView
    UIButton
    故事板
    (译)Getting Started——1.3.4 Writing a Custom Class(编写自定义的类)
    (译)Getting Started——1.3.3 Working with Foundation(使用Foundation框架)
  • 原文地址:https://www.cnblogs.com/tian-sun/p/4505502.html
Copyright © 2011-2022 走看看