50 |
UiLabel *label = [[UiLabel alloc] initWithText: text |
UiLabel *label = [[UiLabel alloc] initWithText: text |
51 |
position: NSZeroPoint]; |
position: NSZeroPoint]; |
52 |
|
|
53 |
[super addWidget: label]; |
[self addWidget: label]; |
54 |
|
|
55 |
[self sizeToFit]; |
[self sizeToFit]; |
56 |
} |
} |
77 |
UiImage *image = [[UiImage alloc] initWithImageName: imageName |
UiImage *image = [[UiImage alloc] initWithImageName: imageName |
78 |
position: NSZeroPoint]; |
position: NSZeroPoint]; |
79 |
|
|
80 |
[super addWidget: image]; |
[self addWidget: image]; |
81 |
|
|
82 |
[super sizeToFit]; |
[self sizeToFit]; |
83 |
} |
} |
84 |
|
|
85 |
return self; |
return self; |