AJPhotoGroupView.h 890 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // AJPhotoGroupView.h
  3. // AJPhotoPicker
  4. //
  5. // Created by AlienJunX on 15/11/2.
  6. // Copyright (c) 2015 AlienJunX
  7. //
  8. // This source code is licensed under the MIT-style license found in the
  9. // LICENSE file in the root directory of this source tree.
  10. //
  11. #import <UIKit/UIKit.h>
  12. @class ALAssetsGroup;
  13. @class ALAssetsFilter;
  14. @protocol AJPhotoGroupViewProtocol <NSObject>
  15. /**
  16. * 选中相册
  17. *
  18. * @param assetsGroup 相册
  19. */
  20. - (void)didSelectGroup:(ALAssetsGroup *)assetsGroup;
  21. @end
  22. @interface AJPhotoGroupView : UITableView
  23. //委托
  24. @property (weak, nonatomic) id<AJPhotoGroupViewProtocol> my_delegate;
  25. //过滤掉不现实的信息
  26. @property (nonatomic, strong) ALAssetsFilter *assetsFilter;
  27. //选中相册的索引
  28. @property (nonatomic) NSInteger selectIndex;
  29. @property (nonatomic, strong) NSMutableArray *groups;
  30. /**
  31. * 加载并显示相册
  32. */
  33. - (void)setupGroup;
  34. @end