Issues with implementation
Opened this issue · 0 comments
I'm trying the base implementation, but just can't seem to find a way to get this to work.
In my h file.
``
import <UIKit/UIKit.h>
import "HGPageScrollView.h"
@interface MyScrollViewController : UIViewController <HGPageScrollViewDataSource, HGPageScrollViewDelegate>``
and m:
#import "MyScrollViewController.h"
@interface MyScrollViewController ()
@end
@implementation MyScrollViewController
- (void)viewDidLoad
`{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
HGPageScrollView *pageScrollView = [[[NSBundle mainBundle] loadNibNamed:@"HGPageScrollView" owner:self options:nil] objectAtIndex:0];
[self.view addSubview:pageScrollView];
}
``
In your markdown you note
least the required method in this protocol: pageScrollView:viewForPageAtIndex: But I dont really see anywhere that details this.
I tried mimicing what was in the sample file but I keep returning:
2012-09-10 14:25:48.913 MyScroll[21002:c07] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[__NSArrayM insertObject:atIndex:]: object cannot be nil'
*** First throw call stack: