forked from tidev/titanium-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TiUIButtonBarProxy.m
50 lines (40 loc) · 982 Bytes
/
TiUIButtonBarProxy.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
* 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.
*/
#import "TiUIButtonBarProxy.h"
#import "TiUIButtonBar.h"
@implementation TiUIButtonBarProxy
NSArray* tabbedKeySequence;
-(NSArray*)keySequence
{
if (tabbedKeySequence == nil) {
tabbedKeySequence = [[NSArray alloc] initWithObjects:@"labels",@"style",nil];
}
return tabbedKeySequence;
}
-(NSString*)apiName
{
return @"Ti.UI.ButtonBar";
}
-(TiUIView*)newView
{
TiUIButtonBar * result = [[TiUIButtonBar alloc] init];
[result setTabbedBar:NO];
return result;
}
USE_VIEW_FOR_CONTENT_WIDTH
USE_VIEW_FOR_CONTENT_HEIGHT
#ifndef TI_USE_AUTOLAYOUT
-(TiDimension)defaultAutoWidthBehavior:(id)unused
{
return TiDimensionAutoSize;
}
-(TiDimension)defaultAutoHeightBehavior:(id)unused
{
return TiDimensionAutoSize;
}
#endif
@end