Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (30 sloc) 0.951 kB
/**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2010 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
#if defined(USE_TI_UIIOSCOVERFLOWVIEW) || defined(USE_TI_UICOVERFLOWVIEW)
#import "TiUIiOSCoverFlowViewProxy.h"
#import "TiBase.h"
#import "TiUIiOSCoverFlowView.h"
NSArray* coverflowKeySequence;
@implementation TiUIiOSCoverFlowViewProxy
DEFINE_DEF_INT_PROP(selected, 0);
-(NSArray*)keySequence
{
if (coverflowKeySequence == nil) {
coverflowKeySequence = [[NSArray alloc] initWithObjects:@"images",nil];
}
return coverflowKeySequence;
}
-(void)setImage:(id)args
{
ENSURE_ARG_COUNT(args,2);
ENSURE_UI_THREAD(setImage,args);
int index = [TiUtils intValue:[args objectAtIndex:0]];
id image = [args objectAtIndex:1];
[(TiUIiOSCoverFlowView*)[self view] setImage:image forIndex:index];
}
@end
#endif
Jump to Line
Something went wrong with that request. Please try again.