mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-10 06:40:23 +00:00
only rotate on iPad
This commit is contained in:
parent
9d6f5e03a6
commit
190ca78e3f
@ -43,6 +43,9 @@
|
||||
- (id)initWithStyle:(int)style reuseIdentifier:(NSString *)reuseIdentifier;
|
||||
@end
|
||||
#endif
|
||||
@interface UIDevice (privateAPI)
|
||||
-(BOOL) isWildcat;
|
||||
@end
|
||||
|
||||
@implementation BTDiscoveryViewController
|
||||
@synthesize showIcons;
|
||||
@ -115,7 +118,6 @@
|
||||
// Return YES for supported orientations
|
||||
return (interfaceOrientation == UIInterfaceOrientationPortrait);
|
||||
}
|
||||
*/
|
||||
|
||||
- (void)didReceiveMemoryWarning {
|
||||
// Releases the view if it doesn't have a superview.
|
||||
@ -123,12 +125,8 @@
|
||||
|
||||
// Release any cached data, images, etc that aren't in use.
|
||||
}
|
||||
*/
|
||||
|
||||
- (void)viewDidUnload {
|
||||
[super viewDidUnload];
|
||||
// Release any retained subviews of the main view.
|
||||
// e.g. self.myOutlet = nil;
|
||||
}
|
||||
|
||||
// BTstackManagerListenerDelegate
|
||||
-(void) activatedBTstackManager:(BTstackManager*) manager{
|
||||
@ -340,8 +338,8 @@
|
||||
|
||||
// Override to allow orientations other than the default portrait orientation.
|
||||
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
|
||||
return YES;
|
||||
// return NO;
|
||||
UIDevice * uiDevice = [UIDevice currentDevice];
|
||||
return [uiDevice respondsToSelector:@selector(isWildcat)] && [uiDevice isWildcat];
|
||||
}
|
||||
|
||||
- (void)dealloc {
|
||||
|
Loading…
x
Reference in New Issue
Block a user