- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 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
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
-(void) reloadHelpMessage:(BOOL) _isPortrait
{
//ignoreDisappear = NO;
//ingnoreWillAppear = NO;
if (_isPortrait)
{
helpMessage.frame = CGRectMake(helpMessage.frame.origin.x, helpMessage.frame.origin.y, self.view.bounds.size.width, 175);
for (UIView* sub in [helpMessage subviews])
{
NSLog(@"__%@",[sub description]);
switch (sub.tag)
{
case 1:
sub.frame = CGRectMake(68, 17, 200, 18);
break;
case 2:
sub.frame = CGRectMake(68, 40, self.view.bounds.size.width - 70, 80);
break;
case 3:
sub.frame = CGRectMake(267, 3, 35, 29);
break;
case 4:
sub.frame = CGRectMake(10, 8, 48, 53);
break;
case 5:
sub.frame = CGRectMake(11, 128, roundf((self.view.bounds.size.width - 32)/2), 36);
break;
case 6:
sub.frame = CGRectMake(roundf((self.view.bounds.size.width/2) + 5), 128, roundf((self.view.bounds.size.width - 32)/2), 36);
break;
default:
break;
}
}
}
else
{
helpMessage.frame = CGRectMake(helpMessage.frame.origin.x, helpMessage.frame.origin.y, self.view.frame.size.width, 138);
for (UIView* sub in [helpMessage subviews])
{
NSLog(@"__%@",[sub description]);
switch (sub.tag)
{
case 1:
sub.frame = CGRectMake(68, 17, 200, 18);
break;
case 2:
sub.frame = CGRectMake(68, 40, self.view.bounds.size.width - 80, 40);
break;
case 3:
sub.frame = CGRectMake(400, 3, 35, 29);
break;
case 4:
sub.frame = CGRectMake(10, 8, 48, 53);
break;
case 5:
sub.frame = CGRectMake(11, 91, roundf((self.view.bounds.size.width - 32)/2), 36);
break;
case 6:
sub.frame = CGRectMake(roundf((self.view.bounds.size.width/2) + 5), 91, roundf((self.view.bounds.size.width - 32)/2), 36);
break;
default:
break;
}
}
}
}