mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-14 01:27:41 +00:00
add instructions below inquiry
This commit is contained in:
parent
d2e91376b2
commit
b76b202763
@ -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 {
|
||||
|
@ -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
|
||||
|
@ -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];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user