xinghelee
V2EX  ›  C

仿 QQ 图片选择器

  •  
  •   xinghelee · Aug 26, 2015 · 2319 views
    This topic created in 4096 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
    PHPwind
    Aug 26, 2015 via iPhone
    1
    为了宣传戳子科技,楼主也是蛮拼的
    allenforrest
    allenforrest
    Aug 27, 2015
    2
    url?
    pheyer
    pheyer
    Aug 27, 2015
    3
    链接也不放一个。。。
    mkeith
    mkeith
    Aug 27, 2015
    4
    @PHPwind 这也能黑啊
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2493 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 04:40 · PVG 12:40 · LAX 20:40 · JFK 23:40
    ♥ Do have faith in what you're doing.