Commit ce6ab0c0 authored by Achilles's avatar Achilles

提交无数据时的图片

parent 2f49dc76
This diff is collapsed.
......@@ -21,6 +21,4 @@
@interface NoDataCell_iPhoneCell : BeeUICell
AS_OUTLET( BeeUILabel, lblMsg )
@end
......@@ -24,8 +24,6 @@
SUPPORT_AUTOMATIC_LAYOUT( YES )
SUPPORT_RESOURCE_LOADING( YES )
DEF_OUTLET( BeeUILabel, lblMsg )
- (void)load
{
}
......@@ -36,11 +34,6 @@ DEF_OUTLET( BeeUILabel, lblMsg )
- (void)dataDidChanged
{
NSString *str = self.data;
if (nil == str) {
str = @"没有数据,请稍后重试!";
}
$(self.lblMsg).DATA(str);
}
- (void)layoutDidFinish
......
......@@ -2,7 +2,7 @@
<ui namespace="NoDataCell_iPhoneCell">
<linear orientation="v" class="wrapper">
<label id="lblMsg" class="msg"/>
<image class="bg" />
</linear>
<style type="text/css">
......@@ -12,10 +12,13 @@
align: center;
}
.msg {
width: auto;
height: 30px;
color: black;
.bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url(no_data.png);
}
</style>
</ui>
\ No newline at end of file
......@@ -77,7 +77,7 @@ ON_CREATE_VIEWS( signal )
self.list.total = 1;
BeeUIScrollItem * item = self.list.items[0];
item.size = CGSizeMake( self.list.width, 50);
item.size = CGSizeMake( self.list.width, 100 );
item.order = 0;
item.rule = BeeUIScrollLayoutRule_Fall;
item.clazz = [NoDataCell_iPhoneCell class];
......
......@@ -90,7 +90,7 @@ ON_CREATE_VIEWS( signal )
self.list.total = 1;
BeeUIScrollItem * item = self.list.items[0];
item.size = CGSizeMake( self.list.width, 50);
item.size = CGSizeMake( self.list.width, 100);
item.order = 0;
item.rule = BeeUIScrollLayoutRule_Fall;
item.clazz = [NoDataCell_iPhoneCell class];
......
......@@ -296,7 +296,7 @@ ON_SIGNAL3(VankeStatementDetailListBoard_iPhone, btnConfirm, signal) {
self.list.total = 1;
BeeUIScrollItem * item = self.list.items[0];
item.size = CGSizeMake( self.list.width, 50);
item.size = CGSizeMake( self.list.width, 100);
item.order = 0;
item.rule = BeeUIScrollLayoutRule_Fall;
item.clazz = [NoDataCell_iPhoneCell class];
......
......@@ -215,7 +215,7 @@ ON_NOTIFICATION3( VankeStatementDetailListBoard_iPhone, STATE_CHANGED, notificat
self.list.total = 1;
BeeUIScrollItem * item = self.list.items[0];
item.size = CGSizeMake( self.list.width, 50);
item.size = CGSizeMake( self.list.width, 200);
item.order = 0;
item.rule = BeeUIScrollLayoutRule_Fall;
item.clazz = [NoDataCell_iPhoneCell class];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment