获取View的快照

//获取快照

- (UIView*)customSnapshotInView:(UIView*)inview

{

    UIView *snapshot = [inview snapshotViewAfterScreenUpdates:YES];

    snapshot.layer.shadowColor = [UIColor blackColor].CGColor;

    snapshot.layer.shadowOffset = CGSizeMake(0, 0);

    snapshot.layer.shadowRadius = 4;

    snapshot.layer.cornerRadius = 0;

    snapshot.layer.shadowOpacity = 0.9;

    return snapshot;

}

 

posted @ 2014-08-18 14:35  糊涂人  阅读(378)  评论(0编辑  收藏  举报