Using MultiCarousel in storyboard
I am trying to use the Multi Carousel. I want a linear carousel to be in
the top and the bottom. However the problem is that I have trouble using
the story board in the Multi Carousel. I know there is a example project
using the storyboard in the packet however I cannot make it work in the
Multi Carousel. I have imported icarousel,h and m file,
CarouselViewController.h and m (which was in the storyboard example) and
Carousel Example View Controller .h and m which was used in the multi
Carousel demo. I have put 2 view naming iCarousel 1 and iCarousel 2 and
placed it in the view. I have connect the view to the iCarousel Example
View Controller. From here I got confused when the App Delegate came in.
Below is my code for my app delegate.h .
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
#import "iCarouselExampleViewController.h"
@class iCarouselExampleViewController;
@interface iCarouselExampleAppDelegate : NSObject <UIApplicationDelegate>
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet iCarouselExampleViewController
*viewController;
@end
@interface DataAccessLayer : NSObject
@property (strong, nonatomic) NSManagedObjectContext *managedObjectContext;
@property (strong, nonatomic) NSManagedObjectModel *managedObjectModel;
@property (strong, nonatomic) NSPersistentStoreCoordinator *storeCoordinator;
+ (DataAccessLayer *)sharedInstance;
- (void)saveContext;
@end
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
and for the .m is
#import "AppDelegate.h"
#import <UIKit/UIKit.h>
#import "iCarouselExampleViewController.h"
@implementation iCarouselExampleAppDelegate
@synthesize window;
@synthesize viewController;
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[window addSubview:viewController.view];
[window makeKeyAndVisible];
return YES;
}
- (void)dealloc
{
[window release];
[viewController release];
[super dealloc];
}
@end
@interface DataAccessLayer ()
- (NSURL *)applicationDocumentsDirectory;
@end
@implementat
I really need help using the Multi Carousel in storyboard. Also where is
the place where I am able to choose linear and stuff for both ?
No comments:
Post a Comment