This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UIToolbar *toolBar = [[UIToolbar alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 100.0f, 44.0f)]; | |
self.countLabel = [[UILabel alloc] init]; | |
self.countLabel.text = [self characterCountRemaining:0]; | |
[self.countLabel sizeToFit]; | |
UIBarButtonItem *countLabelItem = [[UIBarButtonItem alloc] initWithCustomView:self.countLabel]; | |
UIBarButtonItem *tweetButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Tweet" style:UIBarButtonItemStylePlain target:self action:@selector(onTweet)]; | |
[toolBar setItems:@[countLabelItem, tweetButtonItem] animated:NO]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Prism, | |
self = { | |
addEventListener: function () {}, | |
set Prism(implementation) { | |
Prism = implementation; | |
} | |
}; | |
/*********************************************** | |
Begin prism-core.js |