Это мой ViewController.h, он очень короткий и простой, поэтому я подумал, что это будет работать.реализация не завершена ".Что я делаю не так?
//
// ViewController.m
// Blue Bird
//
// Created by Chandler Davis on 12/23/11.
// Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//
#import "ViewController.h"
@implementation ViewController
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Release any cached data, images, etc that aren't in use.
}
#pragma mark - View lifecycle
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}
- (void)viewDidUnload
{
[super viewDidUnload];
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
}
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
}
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
}
- (void)viewWillDisappear:(BOOL)animated
{
[super viewWillDisappear:animated];
}
- (void)viewDidDisappear:(BOOL)animated
{
[super viewDidDisappear:animated];
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
if ([TWTweetComposeViewController canSendTweet]) {
TWTweetComposeViewController *tweetComposer = [[TWTweetComposeViewController alloc]
init];
[tweetComposer setInitialText:@"twit"];
[self presentModalViewController:tweetComposer animated:YES];
}
else {
UIAlertView *alertView = [[UIAlertView alloc]
initWithTitle:@"error" message:@"unable to send tweet" delegate:self cancelButtonTitle:@"ok" otherButtonTitles: nil];
[alertView show];
}
return 0;
}
@end