V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
fancymax
V2EX  ›  分享创造

Cocoa Learning(Swift) Demo

  •  
  •   fancymax ·
    fancymax · 2016-01-26 19:58:55 +08:00 · 2299 次点击
    这是一个创建于 3005 天前的主题,其中的信息可能已经有所发展或是发生改变。

    This is some Demo come from the book 「 Cocoa Programming for Mac OS X 」 , and I will add more here.

    RandomPassword

    Maybe your first Cocoa Program, use it to understand the MVC structrue.

    demo

    RGBWell

    Another easy demo.

    demo

    SpeakLine

    An interesting Demo to translate text to sound, and remember last voice you selected(by userDefault)

    demo

    DiceView

    An interesting Demo teach me the way to create a custom userControl.

    demo

    NerdTabViewController

    A Demo teach me how to create a Tab-style view

    demo

    wait more to come~~

    URL: https://github.com/fancymax/Cocoa-Learning

    15 条回复    2016-01-29 10:51:19 +08:00
    pheyer
        1
    pheyer  
       2016-01-27 10:03:22 +08:00
    老是做些 Demo 感觉不是个事啊,不如做点有用的,比如定时提醒使用电脑的人去倒水,强制休息一分钟;或者做一个提醒人左右晃动头来预防颈椎病的软件
    squall7902
        2
    squall7902  
       2016-01-27 11:10:35 +08:00
    我一直想要一个多看的 Mac 客户端。
    fancymax
        3
    fancymax  
    OP
       2016-01-27 12:07:25 +08:00
    @pheyer 嗯,不过产品没那么好做啊,这些都是以前刚学的时候写的,只是整理了一下。
    fancymax
        4
    fancymax  
    OP
       2016-01-27 12:08:52 +08:00
    @squall7902 很早之前也有这个想法,不过买了 kindle 之后就就很少在 Mac 上看书了
    squall7902
        5
    squall7902  
       2016-01-27 14:39:49 +08:00
    @fancymax 现在感觉手上的装备越来越多,但始终用的最多的还是本。因为要随时写笔记。
    tylerlong
        6
    tylerlong  
       2016-01-27 21:25:54 +08:00
    这本书我也看过,最开始是中文的 Objective-C 版, 翻译的很烂,内容有点过时,后来出了新的 Swift 语言版,果断从美国亚马逊购买了电子书。

    这本书的后半部分写得没有前半部分好。感觉前面是教程,后面越来越像是手册,于是我尝试了好多次始终没有看完。后来实践做得多了,也基本上不再看它了。

    这本书的大缺陷是没有用 story board 技术。 导致我养成了习惯,新建项目总是不用这个技术。其实不管大小项目都应该用,因为 iOS 那边用这个技术很多很好使,两边统一起来是比较好的。

    以上观点是不成熟的个人看法,欢迎交流。
    sobigfish
        7
    sobigfish  
       2016-01-28 10:11:57 +08:00
    This is some ...
    不能老老实实说中文啊
    sobigfish
        8
    sobigfish  
       2016-01-28 10:20:19 +08:00
    抱歉没打完就回车习惯性的发了出去,
    github 还在挂掉中,看不到代码。

    但看别人的 demo 还不如自己敲一遍,再和官方提供的例子对比下
    如果是 bignerdranch 的那本的话,网上应该有。
    fancymax
        9
    fancymax  
    OP
       2016-01-28 10:24:34 +08:00
    @tylerlong 和你经历类似,我是抽着看的,前半部分确实写的好些,我觉得可能是因为后半部分内容是新增的和以前版本完全不同吧。
    关于用 story board 还是 xib ,我还没发现特别的优缺点。就是觉得这些不能手动编辑很烦。

    谢谢你的评论。

    https://tylingsoft.com/markdown-plus/这个怎么打不开?
    fancymax
        10
    fancymax  
    OP
       2016-01-28 10:31:03 +08:00
    @sobigfish 是啊,自己敲代码很重要。
    我是整理完闲的无聊发的。随便看看哪些人也在学。
    jedihy
        11
    jedihy  
       2016-01-29 03:38:39 +08:00
    *These are some demos coming from the book
    fancymax
        12
    fancymax  
    OP
       2016-01-29 08:27:57 +08:00
    @jedihy Thanks~
    tylerlong
        13
    tylerlong  
       2016-01-29 09:03:36 +08:00
    @fancymax 不支持 https : http://tylingsoft.com/markdown-plus/

    Chrome 浏览器由于记住了 https (可能之前访问过),可能会强制跳转,然后可以搜索 "chrome https http" 找到一个解决方案。 还是挺蛋疼的。

    简单点就直接换个浏览器访问 http
    fancymax
        14
    fancymax  
    OP
       2016-01-29 10:19:49 +08:00
    @tylerlong 我在 safari 上不行,在 firefox 和 Chrome 都能访问。
    tylerlong
        15
    tylerlong  
       2016-01-29 10:51:19 +08:00
    @fancymax 嗯,好像是不管什么浏览器,都会记住网站之前是不是 https ,如果是,下次还会尝试 https 。 然而我的网站最近迁移到 GitHub Pages ,自定义域名不支持 https 。挺头疼的一件事情。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5421 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 03:35 · PVG 11:35 · LAX 20:35 · JFK 23:35
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.