Show Mainbar in ChatRoom view

This commit is contained in:
Yann Diorcet 2012-07-18 16:49:55 +02:00
parent da2dbcb36b
commit d8438aa742
2 changed files with 10 additions and 8 deletions

View file

@ -69,8 +69,8 @@ static UICompositeViewDescription *compositeDescription = nil;
content:@"ChatRoomViewController"
stateBar:nil
stateBarEnabled:false
tabBar:nil
tabBarEnabled:false
tabBar:@"UIMainBar"
tabBarEnabled:true
fullscreen:false];
}
return compositeDescription;
@ -255,7 +255,8 @@ static UICompositeViewDescription *compositeDescription = nil;
#pragma mark - Keyboard Event Functions
- (void)keyboardWillHide:(NSNotification *)notif {
CGRect beginFrame = [[[notif userInfo] objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue];
//CGRect beginFrame = [[[notif userInfo] objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue];
//CGRect endFrame = [[[notif userInfo] objectForKey:UIKeyboardFrameEndUserInfoKey] CGRectValue];
UIViewAnimationCurve curve = [[[notif userInfo] objectForKey:UIKeyboardAnimationCurveUserInfoKey] intValue];
NSTimeInterval duration = [[[notif userInfo] objectForKey:UIKeyboardAnimationDurationUserInfoKey] doubleValue];
[UIView beginAnimations:@"resize" context:nil];
@ -264,9 +265,8 @@ static UICompositeViewDescription *compositeDescription = nil;
[UIView setAnimationBeginsFromCurrentState:TRUE];
// Move view
CGRect endFrame = [[[notif userInfo] objectForKey:UIKeyboardFrameEndUserInfoKey] CGRectValue];
CGRect frame = [[self view] frame];
frame.origin.y += endFrame.origin.y - beginFrame.origin.y;
frame.origin.y = 0;
[[self view] setFrame:frame];
// Resize table view
@ -279,7 +279,8 @@ static UICompositeViewDescription *compositeDescription = nil;
}
- (void)keyboardWillShow:(NSNotification *)notif {
CGRect beginFrame = [[[notif userInfo] objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue];
//CGRect beginFrame = [[[notif userInfo] objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue];
CGRect endFrame = [[[notif userInfo] objectForKey:UIKeyboardFrameEndUserInfoKey] CGRectValue];
UIViewAnimationCurve curve = [[[notif userInfo] objectForKey:UIKeyboardAnimationCurveUserInfoKey] intValue];
NSTimeInterval duration = [[[notif userInfo] objectForKey:UIKeyboardAnimationDurationUserInfoKey] doubleValue];
[UIView beginAnimations:@"resize" context:nil];
@ -288,9 +289,8 @@ static UICompositeViewDescription *compositeDescription = nil;
[UIView setAnimationBeginsFromCurrentState:TRUE];
// Move view
CGRect endFrame = [[[notif userInfo] objectForKey:UIKeyboardFrameEndUserInfoKey] CGRectValue];
CGRect frame = [[self view] frame];
frame.origin.y += endFrame.origin.y - beginFrame.origin.y;
frame.origin.y = [self.view convertPoint:endFrame.origin fromView:nil].y - frame.size.height;
[[self view] setFrame:frame];
// Resize table view

View file

@ -57,6 +57,7 @@
@synthesize conferenceCell;
@synthesize currentCall;
#pragma mark - Lifecycle Functions
- (id)initWithIdentifier:(NSString*)identifier {
@ -97,6 +98,7 @@
data = nil;
}
#pragma mark - Properties Functions
- (void)setData:(UICallCellData *)adata {