已知BUG:获取系统图片,图片过多的时候会崩溃! 求大神支招!
//显示图片预览:
HySideScrollingImagePicker *hy = [[HySideScrollingImagePicker alloc] initWithCancelStr:@"取消" otherButtonTitles:@[@"拍摄",@"从相册选择",@"更多"]];
hy.isMultipleSelection = false;
hy.SeletedImages = ^(NSArray *GetImages, NSInteger Buttonindex){
NSLog(@"GetImages-%@,Buttonindex-%ld",GetImages,(long)Buttonindex);
};
[self.view insertSubview:hy atIndex:[[self.view subviews] count]];
//显示自定义ActionSheet
HyActionSheet *action = [[HyActionSheet alloc] initWithCancelStr:@"取消" otherButtonTitles:@[@"退出登录"] AttachTitle:@"退出登录后不会删除任何历史数据, 下次登录依然可以使用本账号"];
[action ChangeTitleColor:[UIColor redColor] AndIndex:1];
[self.view addSubview:action];
action.ButtonIndex = ^(NSInteger Buttonindex){
NSLog(@"index--%ld",Buttonindex);
};
测试环境:Xcode 6.2,iOS 6.0以上