V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
jianleer
V2EX  ›  C

仿 QQ 图片选择器

  •  
  •   jianleer · Aug 26, 2015 · 1878 views
    This topic created in 3907 days ago, the information mentioned may be changed or developed.

    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

    Supplement 1  ·  Aug 27, 2015
    6 replies    2015-08-27 17:18:00 +08:00
    PHPwind
        1
    PHPwind  
       Aug 26, 2015 via iPhone
    为了宣传戳子科技,楼主也是蛮拼的
    allenforrest
        2
    allenforrest  
       Aug 27, 2015
    url?
    pheyer
        3
    pheyer  
       Aug 27, 2015
    链接也不放一个。。。
    mkeith
        4
    mkeith  
       Aug 27, 2015
    @PHPwind 这也能黑啊
    jianleer
        5
    jianleer  
    OP
       Aug 27, 2015
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4173 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 65ms · UTC 05:09 · PVG 13:09 · LAX 22:09 · JFK 01:09
    ♥ Do have faith in what you're doing.