self.navigationItem.rightBarButtonItem = BARBUTTON(@"Record", @selector(record));
else
self.title = @"No Audio Input Available";
}
@end
@interface TestBedAppDelegate : NSObject <UIApplicationDelegate>
@end
@implementation TestBedAppDelegate
- (void)applicationDidFinishLaunching:(UIApplication *)application {
UIWindow *window = [[UIWindowalloc] initWithFrame:[[UIScreenmainScreen] bounds]];
UINavigationController *nav = [[UINavigationControlleralloc] initWithRootViewController:[[TestBedViewControlleralloc] init]];
[window addSubview:nav.view];
[window makeKeyAndVisible];
}
@end
int main(int argc, char *argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, @"TestBedAppDelegate");