I decide to use your CXPhotoBrowser in storyboard but can't handle it. The reason is you don't implement method [initWithCoder:]. I changed your implement file like this. Hope you can consider it.
- (id)init
{
self = [super init];
if (self)
{
[self setupDefault];
}
return self;
}
- (id)initWithCoder:(NSCoder *)aDecoder
{
self = [super initWithCoder:aDecoder];
if (self)
{
[self setupDefault];
}
return self;
}
- (void)setupDefault
{
self.wantsFullScreenLayout = YES;
self.hidesBottomBarWhenPushed = YES;
_performingLayout = NO; // Reset on view did appear
_rotating = NO;
_viewIsActive = NO;
_scrolling = NO;
_didSavePreviousStateOfNavBar = NO;
_shouldUseDefaultUINavigationBar = NO;
_supportReload = YES;
_photoCount = NSNotFound;
_currentPageIndex = 0;
_visiblePages = [[NSMutableSet alloc] init];
_recycledPages = [[NSMutableSet alloc] init];
_photos = [[NSMutableArray alloc] init];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(handleCXPhotoImageDidStartLoad:)
name:NFCXPhotoImageDidStartLoad
object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(handleCXPhotoImageDidFinishLoad:)
name:NFCXPhotoImageDidFinishLoad
object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(handleCXPhotoImageDidFailLoadWithError:)
name:NFCXPhotoImageDidFailLoadWithError
object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(handleCXPhotoImageDidStartReload:)
name:NFCXPhotoImageDidStartReload
object:nil];
}