add instructions below inquiry

This commit is contained in:
matthias.ringwald 2009-10-24 16:10:24 +00:00
parent d2e91376b2
commit b76b202763
3 changed files with 16 additions and 2 deletions

View File

@ -272,7 +272,8 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packe
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return YES;
// return YES;
return NO;
}
- (void)didReceiveMemoryWarning {

View File

@ -22,7 +22,8 @@
}
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return YES;
// return YES;
return NO;
}
@end

View File

@ -152,6 +152,18 @@ void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint
[inqViewControl setTitle:@"BTstack Device Selector"];
[inqViewControl setAllowSelection:NO];
// UILabel *footer = [[UILabel alloc] initWithFrame:CGRectMake(10,0,300,30)];
// footer.text = @"Please press the 1+2 buttons\nof your WiiMote at the same time\nto make it discoverable";
UITextView *footer = [[UITextView alloc] initWithFrame:CGRectMake(10,00,300,85)];
footer.text = @"Please make your WiiMote discoverable by pressing the 1+2 buttons at the same time";
footer.textColor = [UIColor blackColor];
footer.font = [UIFont fontWithName:@"Arial" size:18];
// footer.textAlignment = UITextAlignmentCenter;
footer.backgroundColor = [UIColor whiteColor];
footer.autoresizingMask = UIViewAutoresizingFlexibleWidth;
footer.editable = false;
[[inqViewControl tableView] setTableFooterView:footer];
// create nav view controller
navControl = [[UINavigationController alloc] initWithRootViewController:inqViewControl];