Skip to content

kazuyayokoyama/TPComposeView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#TPComposeView TPComposeView is a simple modal view which allows the user to quickly compose text similar to the integrated TWTweetComposeViewController in iOS 5 (landscape support will be added soon).

image

###Installation

  • Drag the TPComposeView/TPComposeView folder into your project.

###Usage TPComposeView can be used in the same way as TWTweetComposeViewController. Set the completionHandler block and you are ready to go. Example:

TPComposeView *composeView = [[TPComposeView alloc] initWithInitialText:@"Some text..."];
composeView.title = @"Compose";
composeView.completionHandler = ^(TPComposeViewResult result, NSString *text){
    switch (result) 
    {
        case TPComposeViewResultCancelled:
			// Cancelled
            break;
            
        case TPComposeViewResultDone:
			// Do some magic with the text
            break;                
    }
};
[composeView presentComposeView];
[composeView release];   

Present the compose view using presentComposeView method. To limit the number of characters set the maxValue for maxChars (it will automatically show the char indicator).

####Optional methods There are some additional methods you can use. See the header file.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published