temp fix for incorrect SDK 3.x detection

This commit is contained in:
matthias.ringwald 2009-12-08 00:16:09 +00:00
parent 0f6314a1b1
commit 58c0a1b038
2 changed files with 8 additions and 2 deletions

View File

@ -42,13 +42,16 @@
#include <dlfcn.h>
#define INQUIRY_INTERVAL 3
// fix compare for 3.0
#ifndef __IPHONE_3_0
#define __IPHONE_3_0 30000
#endif
#if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_3_0
// SDK 30 defines missing in SDK 20
@interface UITableViewCell (NewIn30)
- (id)initWithStyle:(int)style reuseIdentifier:(NSString *)reuseIdentifier;
@end
#endif
static BTInquiryViewController *inqView;
@ -113,7 +116,9 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packe
*/
// check for the one missing method
onSDK20 = [UITableViewCell instancesRespondToSelector:@selector(initWithFrame:reuseIdentifier:)];
onSDK20 = 0;
// [UITableViewCell instancesRespondToSelector:@selector(initWithFrame:reuseIdentifier:)];
NSLog(@"onSDK20 = %u", onSDK20);
return self;
}

View File

@ -3,6 +3,7 @@
2009-11-08: Release 0.1
NEXT:
- fix SDK 2.0 detection
- implement rest of L2CAP state machine
- incoming connections
- list of supported PSM