Various bug fixes

This commit is contained in:
Andreas Linde 2012-10-19 13:48:36 +02:00
parent f6f92d2027
commit 3cb7a23bd0
4 changed files with 6 additions and 5 deletions

View File

@ -123,7 +123,6 @@
}
frame.size.height = windowSize.width - navBarHeight - modalGap - kbSize.width;
}
NSLog(@"%@", NSStringFromCGRect(frame));
}
[self.textView setFrame:frame];
}

View File

@ -135,6 +135,7 @@
- (void)layoutSubviews {
UIView *accessoryViewBackground = [[[UIView alloc] initWithFrame:CGRectMake(0, 2, self.frame.size.width * 2, self.frame.size.height - 2)] autorelease];
accessoryViewBackground.autoresizingMask = UIViewAutoresizingFlexibleHeight;
accessoryViewBackground.clipsToBounds = YES;
// colors
if (_backgroundStyle == BITFeedbackListViewCellBackgroundStyleNormal) {

View File

@ -194,7 +194,7 @@
UINavigationController *navController = [[[UINavigationController alloc] initWithRootViewController:userController] autorelease];
navController.modalPresentationStyle = UIModalPresentationFormSheet;
[self.navigationController presentModalViewController:navController animated:YES];
[self presentViewController:navController animated:YES completion:nil];
}
- (void)newFeedbackAction:(id)sender {
@ -203,7 +203,7 @@
UINavigationController *navController = [[[UINavigationController alloc] initWithRootViewController:composeController] autorelease];
navController.modalPresentationStyle = UIModalPresentationFormSheet;
[self.navigationController presentModalViewController:navController animated:YES];
[self presentViewController:navController animated:YES completion:nil];
}
- (void)deleteAllMessages {
@ -334,6 +334,7 @@
// button
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
button.autoresizingMask = UIViewAutoresizingFlexibleWidth;
[button.layer setMasksToBounds:YES];
[button.layer setCornerRadius:10.0f];
[button.layer setBorderWidth:1];
@ -379,7 +380,7 @@
[button addTarget:self action:@selector(deleteAllMessagesAction:) forControlEvents:UIControlEventTouchUpInside];
}
[button setFrame: CGRectMake( 10.0f, topGap + 12.0f, self.view.frame.size.width - 20.0f, 42.0f)];
[button setFrame: CGRectMake( 10.0f, topGap + 12.0f, cell.contentView.bounds.size.width - 20.0f, 42.0f)];
[cell addSubview:button];

View File

@ -180,7 +180,7 @@
if ([viewController isKindOfClass:[BITHockeyBaseViewController class]])
[(BITHockeyBaseViewController *)viewController setModalAnimated:YES];
[parentViewController presentModalViewController:_navController animated:YES];
[parentViewController presentViewController:_navController animated:YES completion:nil];
} else {
// if not, we add a subview to the window. A bit hacky but should work in most circumstances.
// Also, we don't get a nice animation for free, but hey, this is for beta not production users ;)