mirror of
https://github.com/zhigang1992/STTweetLabel.git
synced 2026-04-29 01:35:52 +08:00
Create gh-pages branch via GitHub
This commit is contained in:
@@ -39,12 +39,11 @@
|
||||
|
||||
<h2>Documentation</h2>
|
||||
|
||||
<p>You need only 3 files:</p>
|
||||
<p>You need only 2 files:</p>
|
||||
|
||||
<ul>
|
||||
<li><code>STTweetLabel.h</code></li>
|
||||
<li><code>STTweetLabel.m</code></li>
|
||||
<li><code>STLinkProtocol.h</code></li>
|
||||
</ul><p>Don't forget to implement <code>STLinkProtocol</code> and initialize the <code>STTweetLabel</code>'s delegate in the view controller which manages your <code>STTweetLabel</code> (see the example in the project).</p>
|
||||
|
||||
<p>You can change the fonts and colors for the different words (#Hashtag/<a href="https://github.com/People" class="user-mention">@People</a> AND <a href="http://link.com">http://link.com</a>) via the <code>STTweetLabel</code> attributes.</p>
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"tagline":"An UILabel with #hashtag @name http:// tappable","note":"Don't delete this file! It's used internally to help with page regeneration.","name":"STTweetLabel","google":"","body":"# STTweetLabel\r\n\r\nA custom UILabel view controller for iOS with certain words tappable like Twitter (#Hashtag, @People and http://www.link.com/page)\r\n\r\n\r\n\r\n## Documentation\r\n\r\nYou need only 3 files:\r\n\r\n- `STTweetLabel.h`\r\n- `STTweetLabel.m`\r\n- `STLinkProtocol.h`\r\n\r\nDon't forget to implement `STLinkProtocol` and initialize the `STTweetLabel`'s delegate in the view controller which manages your `STTweetLabel` (see the example in the project).\r\n\r\nYou can change the fonts and colors for the different words (#Hashtag/@People AND http://link.com) via the `STTweetLabel` attributes.\r\n\r\n## Demo\r\n\r\nBuild and run the project in Xcode to see `STTweetLabel` in action. \r\n\r\n\r\n## Example Usage\r\n\r\n``` objective-c\r\n STTweetLabel *tweetLabel = [[STTweetLabel alloc] initWithFrame:CGRectMake(20.0, 60.0, 280.0, 200.0)];\r\n \r\n [tweetLabel setFont:[UIFont fontWithName:@\"HelveticaNeue\" size:17.0]];\r\n [tweetLabel setTextColor:[UIColor blackColor]];\r\n [tweetLabel setDelegate:self];\r\n [tweetLabel setText:@\"Hi. This is a new tool for @you! Developed by->@SebThiebaud for #iPhone #ObjC... ;-) My GitHub page: https://t.co/pQXDoiYA\"];\r\n [self.view addSubview:tweetLabel];\r\n```\r\n\r\nWhen an user will click on a tappable word, the delegate method `- (void)tweetLinkClicked:(NSString *)link` will be called. The word clicked by the user is the parameter `(NSString *)link`.\r\n\r\n## Credits\r\n\r\nInspired by the original Twitter applications.\r\n\r\n## Contact\r\n\r\nSebastien Thiebaud\r\n\r\n- http://github.com/SebastienThiebaud\r\n- http://twitter.com/SebThiebaud\r\n\r\n## License\r\n\r\nSTTweetLabel is available under the MIT license.\r\n\r\n"}
|
||||
{"tagline":"An UILabel with #hashtag @name http:// tappable","google":"","name":"STTweetLabel","body":"# STTweetLabel\r\n\r\nA custom UILabel view controller for iOS with certain words tappable like Twitter (#Hashtag, @People and http://www.link.com/page)\r\n\r\n\r\n\r\n## Documentation\r\n\r\nYou need only 2 files:\r\n\r\n- `STTweetLabel.h`\r\n- `STTweetLabel.m`\r\n\r\nDon't forget to implement `STLinkProtocol` and initialize the `STTweetLabel`'s delegate in the view controller which manages your `STTweetLabel` (see the example in the project).\r\n\r\nYou can change the fonts and colors for the different words (#Hashtag/@People AND http://link.com) via the `STTweetLabel` attributes.\r\n\r\n## Demo\r\n\r\nBuild and run the project in Xcode to see `STTweetLabel` in action. \r\n\r\n\r\n## Example Usage\r\n\r\n``` objective-c\r\n STTweetLabel *tweetLabel = [[STTweetLabel alloc] initWithFrame:CGRectMake(20.0, 60.0, 280.0, 200.0)];\r\n \r\n [tweetLabel setFont:[UIFont fontWithName:@\"HelveticaNeue\" size:17.0]];\r\n [tweetLabel setTextColor:[UIColor blackColor]];\r\n [tweetLabel setDelegate:self];\r\n [tweetLabel setText:@\"Hi. This is a new tool for @you! Developed by->@SebThiebaud for #iPhone #ObjC... ;-) My GitHub page: https://t.co/pQXDoiYA\"];\r\n [self.view addSubview:tweetLabel];\r\n```\r\n\r\nWhen an user will click on a tappable word, the delegate method `- (void)tweetLinkClicked:(NSString *)link` will be called. The word clicked by the user is the parameter `(NSString *)link`.\r\n\r\n## Credits\r\n\r\nInspired by the original Twitter applications.\r\n\r\n## Contact\r\n\r\nSebastien Thiebaud\r\n\r\n- http://github.com/SebastienThiebaud\r\n- http://twitter.com/SebThiebaud\r\n\r\n## License\r\n\r\nSTTweetLabel is available under the MIT license.\r\n\r\n","note":"Don't delete this file! It's used internally to help with page regeneration."}
|
||||
Reference in New Issue
Block a user