V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
jianleer
V2EX  ›  C

仿 QQ 图片选择器

  •  
  •   jianleer · 2015-08-26 22:37:10 +08:00 · 1153 次点击
    这是一个创建于 3158 天前的主题,其中的信息可能已经有所发展或是发生改变。

    CocoaPicker --仿 QQ 图片选择器

    如何使用

    self.view.window.rootViewController.modalPresentationStyle = UIModalPresentationCurrentContext;//半透明
            CocoaPickerViewController *transparentView = [[CocoaPickerViewController alloc] init];
            transparentView.delegate = self;
            transparentView.modalPresentationStyle = UIModalPresentationOverFullScreen;
            transparentView.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
            transparentView.view.frame=self.view.frame;
            transparentView.view.backgroundColor=[[UIColor blackColor] colorWithAlphaComponent:.5];
            transparentView.view.superview.backgroundColor = [UIColor clearColor];
            [self presentViewController:transparentView animated:YES completion:nil];
    }];
    

    截图 0

    Image

    截图 1

    Image

    第 1 条附言  ·  2015-08-27 17:28:28 +08:00
    6 条回复    2015-08-27 17:18:00 +08:00
    PHPwind
        1
    PHPwind  
       2015-08-26 23:55:21 +08:00 via iPhone
    为了宣传戳子科技,楼主也是蛮拼的
    allenforrest
        2
    allenforrest  
       2015-08-27 00:02:40 +08:00
    url?
    pheyer
        3
    pheyer  
       2015-08-27 09:30:45 +08:00
    链接也不放一个。。。
    mkeith
        4
    mkeith  
       2015-08-27 10:24:27 +08:00
    @PHPwind 这也能黑啊
    jianleer
        5
    jianleer  
    OP
       2015-08-27 17:17:00 +08:00
    jianleer
        6
    jianleer  
    OP
       2015-08-27 17:18:00 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   973 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 20:03 · PVG 04:03 · LAX 13:03 · JFK 16:03
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.