Free IPAD

Tweet Sheet – Creating a Popup Tweet in iOS 5

Tweet Sheet â€" Creating a Popup Tweet in iOS 5

Implement the new Twitter capabilities in iOS5 to create a quick tweet in your own app.

Twitter Integration Made Easy

With the release of iOS 5 on Wednesday, a flurry of new features became available to developers. From hot new features like iCloud and iMessage to Android-like notifications, one standout new feature for developers is the addition of an entire Twitter framework, allowing developers to access the Twitter-verse in a much easier way. In prior iterations of iOS, developers needed to add in third-party libraries to authenticate Twitter accounts, post tweets, search for hashtags, and so on. With the new Twitter.framework, iOS takes the wheel from the developers’ apps for the heavy lifting.

This tutorial will let you learn the basics to implementing the new Twitter framework into your iOS app to create and post tweets. By the end, you’ll have a simple app that will let you tweet any given message, link, or image!

Overview

The Twitter.framework has a pre-built modal view controller for presenting the user with a quick tweet, named TWTweetComposeViewController. This “tweet sheet” is a quick way for developers to post text, images or links from within their app, without bouncing out to Safari or the Twitter app.

iOS 5 has a new Accounts framework as well, which allows for a neat and tidy way to store usernames, passwords, etc. Apple has taken the initiative to package the Accounts framework into the new Twitter framework. This means that if an iOS 5 user logs into Twitter in any Twitter-using applications, his credentials can be stored into the iOS Settings and are able to be used by other apps as well.

What if our user is not logged in to Twitter when they get our extravagant tweeting app? Well, that is up to us as the developer to handle. For this example, I’ll show you two different ways to handle this situation. The first is to just let iOS notify the user that they need to be logged in to tweet. The second is to just not let them tweet at all. The decision is up to you! So let’s get started.

Getting Started

Since this tutorial involves new iOS features in iOS 5, it is assumed you’re already running Xcode 4+

To begin, let’s work with a simple, single-view based app. Create a new single-view project in Xcode. Let’s call it TweetThis. For the sake of being cutting edge, let’s make sure the project uses Automatic Reference Counting (ARC).

Add Twitter.framework

To take advantage of the new Twitter framework, we need to link our binary with the Twitter library. This is accomplished by clicking on your project in the Navigator sidebar, selecting your project’s target, and going to Build Phases. This should pull up a table with a few items. Click the arrow next to Link Binary With Libraries to expand the options and click the + button to add a new library. Find the library named Twitter.framework in the popup menu and select add button. Your end product should look a bit like this:

Setup your interface

For this example app, we only need a couple UI elements. In your ViewController.xib, add in a button and a label.

The button will say something like “Tweet this!” and will be linked to the action that brings up our tweet sheet.

The label we add is for displaying an error message should the user not be logged in to Twitter. Let’s give this some text like “Not logged in to Twitter” for now. We’ll simply just hide and unhide this depending of if the user can tweet or not.Last but not least, create an IBOutlet for the button (I named mine tweetButton) and label (mine was errorLabel) and an IBAction for the tweeting named tweetButtonPressed for the event touch up inside. Now let’s hit the code.

ViewController.h Check for availability

At this point, your ViewController.h should look something like this:

#import <UIKit/UIKit.h> @interface ViewController : UIViewController { IBOutlet UIButton *tweetButton; IBOutlet UILabel *errorLabel; } - (IBAction)tweetButtonPressed:(id)sender; @end

We should add in one more variable here before moving on. Add in the interface a BOOL named _canTweet. This boolean will keep track of whether or not the ability to tweet is available. What do you mean by “the ability to tweet is available”? It’s two-fold. The TWTweetComposeViewController has a method named canSendTweet. The method returns true should the user be logged in and if the device is able to reach the Twitter service. While this doesn’t mean it’ll return false if Twitter is down (which is rare anyway), it will be very helpful should the user be in Airplane Mode, or not have service, or some similar situation.

With that boolean, our ViewController header should be complete for now. Let’s head over to ViewController.m and get some work done.

ViewController.m

First things first, let’s import the Twitter framework by importing the header for it. Add the following import line at the top of your file:

#import <Twitter/Twitter.h>

Remember earlier when I mentioned that we have a couple of options to handle if our user isn’t logged in to Twitter yet? Let’s use a define to set this. Add the following line right under your import:

#define letOSHandleLogin FALSE

Since we’re going to modify interface items based on tweeting ability, let’s check our ability to tweet by overriding the loadView method as such:

- (void)loadView { [super loadView]; //Check to see if the user is able to tweet /** * This part is somewhat optional. iOS will prompt the user to log in to Twitter if they aren't already * However, it's best practice to do something similar to this, like show custom alerts, etc. **/ if ([TWTweetComposeViewController canSendTweet]){ _canTweet = YES; } if (letOSHandleLogin) { errorLabel.hidden = YES; } else{ tweetButton.hidden = !(_canTweet);      //If able to tweet, show button errorLabel.hidden = _canTweet;          //If able to tweet, hide error } }

Great! Now at this point you should be able to run your application and depending on whether or not your simulator has a Twitter account setup already, you should see the button or the error message! But that’s just step one. Step two is the fun part: composing the actual tweet!

Composing and Displaying the Tweet Sheet

The last step to creating this awesome tweet is actual composition of the tweet sheet itself. This step is actually quite simple and takes only a few lines of code. Define your IBAction for tweetButtonClicked as such:

- (IBAction)tweetButtonPressed:(id)sender { //Create the tweet sheet TWTweetComposeViewController *tweetSheet = [[TWTweetComposeViewController alloc] init]; //Customize the tweet sheet here //Add a tweet message [tweetSheet setInitialText:@"Just learned how to use the #iOS5 Twitter Framework on @buildinternet"]; //Add an image [tweetSheet addImage:[UIImage imageNamed:@"tweetThumb.png"]]; //Add a link //Don't worry, Twitter will handle turning this into a t.co link [tweetSheet addURL:[NSURL URLWithString:@"http://buildinternet.com/2011/10/ios-creating-your-own-tweet-sheet"]]; //Set a blocking handler for the tweet sheet tweetSheet.completionHandler = ^(TWTweetComposeViewControllerResult result){ [self dismissModalViewControllerAnimated:YES]; }; //Show the tweet sheet! [self presentModalViewController:tweetSheet animated:YES]; }

Let’s go through this line by line real quick to see what’s going on. First, we alloc-init a new tweet sheet; Objective-C basics. After that, we can customize what the actual tweet is. We can set text with the setInitialText method, add an image with addImage, and add a link with addLink (which will be converted to a t.co link for you by Twitter). Next, we have to set a blocking handler for the result. This is to ensure that we don’t mess up the rest of the app while tweeting until we dismiss the modal view (that is our tweet sheet). The last line displays our tweet sheet! Build and run your app to see the tweet in all its glory.

Wrap Up

I’ve included a sample project for you to learn from here on GitHub. This project is only one example of how to use the Twitter framework. Implement it to your pleasing! Add your own images, craft your own tweets, and bring your app to the next level of the Twitter-verse.



Powered By WizardRSS.com | Full Text RSS Feed | Amazon Wordpress Plugin | Android Forum | Hud Software

6 Fun Fake Facebook Walls & How To Create Your Own

fake facebook accountFacebook is the leading social network. As such it is a prime target for practical jokes and pranks. However, creating fake profiles and conversations on Facebook is rather tedious.

With a bit of skill, imagination and the right tools, you can easily create your own custom wall posts and fake profiles. Have a look at what is possible and how to make it happen.

John Lennon

This fake Facebook profile documents the inception and rise of the Beatles, until the death of their manager Brian Epstein in 1967. Click the link above to see the full profile.

fake facebook account

Ben Franklin

Benjamin Franklin’s fake wall explores some highlights of his career, such as writing the Declaration of Independence or inventing Daylight Saving Time. This is actually a fun way to learn about real history!

fake facebook page

Martin Luther

This wall follows Martin Luther from a visit to Rome to the idea of translating the Bible from Greek to German.

fake facebook page

The above Facebook walls were created using MyFakeWall, see details below.

Lebron James

Creating an entire profile is quite an effort. For a quick joke, you can use a different web tool to set up a fake a wall post. Here is an example of Lebron James with comments from Kobe Bryant, Delonte West, and Michael Jordan.

fake facebook page

MacBeth

The MacBeth series of wall posts goes through the entire play. So this is not only suitable to teaching history, but also works for classic literature and culture.

how to make a fake facebook account

Mario

Our favorite Italian plumber Mario is always good for a joke. How many times have you made him save the princess and did Luigi’s help really matter?

how to make a fake facebook account

The three Facebook wall posts above were created using The Wall Machine.

The Wall Machine

The Wall Machine is the tool of choice to create a fun wall post conversation. Conveniently, you can connect using your Facebook account and get started right away with a post filled with placeholders.

fake facebook account

Every item of the post can be customized. You can also create a sequence of posts with events or friendship and relationship statuses in between. More details can be seen in the demonstration video below.

The Wall Machine was also reviewed for the MakeUseOf Directory.

At the time of writing this article, MyFakeWall had very slow page loading times and although the tool as such appeared to work, uploading photos took longer than my span of patience. This is too bad because unlike The Wall Machine, it lets you create a Facebook wall, complete with profile information, pictures, and friends and the results as demonstrated above are of high quality and very convincing. If you are interested in the tool nevertheless, please see MyFakeWall on the MakeUseOf Directory.

By the way, if you are looking to report a fake profile located on the real Facebook, check out the Fake Profiles page. In this context, please see the following articles to protect yourself from Facebook scams, frauds, viruses, stalkers, and other issues:

  • 5 Tips & Tricks To Avoid Facebook Phishing Scams
  • 5 Ways Your Facebook Log-In Password Can Get Stolen
  • How To Protect Yourself From The Facebook Stalkers Out There
  • How To Protect Yourself From Facebook Video Virus, Scams & Pranks
  • The (Very) Unofficial Facebook Privacy Guide

So did you ever create a funny fake Facebook wall? Please share it with us!

Tagged: Facebook • fun • humor • profile • social media



Powered By WizardRSS.com | Full Text RSS Feed | Amazon Wordpress Plugin | Android Forum | Hud Software

100 Best WordPress Themes You Are Going to Use (and Love) in 2012

» Posted on Jan 25, 2012 in Blogging, Design, Web Development, Wordpress Themes | 55 comments

We all must admit that wordpress themes have evolved tremendously since WordPress was first launched, with a set of diary-like templates. With more features, plugins and modules and ideas, WordPress has turned into the web’s most powerful CMS model. With millions of wordpress themes available free and for a fee, today it’s safe to say that there is nothing you cannot do with WordPress as a base platform. From photographer’s portfolios, showcases, and magazine style blogs of all kind and shape, we are free to create anything we want, customize it for our needs and optimize for best user-experience. Here I highlighted 100 best WordPress themes, some are free, some are GPL (general Public License themes) and some are premium (paid) designs, all under $25, which is a price I assume to be affordable to most. With this list under the elbow, you will never run out of ideas what to do with our top picked, best WordPress themes!

 

1. Velvet â€" Responsive Business Portfolio Theme

http://www.toptut.com//HLIC/f5ce23d81f2924de85609a4e2300da3f.jpg

2. Breeze â€" flexible business theme

http://www.toptut.com//HLIC/24d241d6d7f588a9e531105bb6b79c76.jpg

3. Caesarea

http://www.toptut.com//HLIC/7e031f6fe0c1a79e6fbbb315d2e31516.jpg

4. Unipress

http://www.toptut.com//HLIC/68e176a7cf824eaaf042b328cd260631.jpg

5. Armani WordPress Theme

6. “Blackout” Video Blogging Community WP Theme

7. Atomic â€" Full screen Photography WordPress Theme

http://www.toptut.com//HLIC/4c30d22f286c2dda1b6b7f95588398e6.jpg

8. Symphony â€" Minimal  WordPress Theme

9. Convertible â€" Advanced Landing Page Interface

10. “Tutorious” -Community WordPress Theme

http://www.toptut.com//HLIC/db7adae996f6db98c3ca281ad7e1ad6a.jpg

11. Dulcet â€" Business / Corporate  Portfolio WordPress Theme

http://www.toptut.com//HLIC/d1bbb438b18703a746a45933df3fb511.jpg

12. “Canvas” WordPress theme

http://www.toptut.com//HLIC/07b0c3ed4fe82a42a37e6651cd067caf.jpg

13. “Perfect” Full Screen WordPress theme

http://www.toptut.com//HLIC/8143185bfb81078fa67e37d4c809c7cc.jpg

14. Webly â€" Business Elegant WordPress Theme

15. Boutique â€" Shop Integrated WP Theme

16. eStore â€" Shop / eCommerce Integrated WordPress Theme

http://www.toptut.com//HLIC/76fd04bbc2d3a910c21555a7efba86a6.jpg

17. Your Folio WordPress Theme

18. inFocus â€" Powerful And Easy-to-manage WP Platform

inFocus - Powerful Professional WordPress Theme - ThemeForest Item for Sale

19. Boxit â€" Ultra Sleek WordPress Theme

http://www.toptut.com//HLIC/b1e8f6c64b226f093616a86ed8679032.png

20. Envisioned â€" Beautifully Clean Wp Theme

http://www.toptut.com//HLIC/6c3e193c12f782eda475424233e71182.jpg

21. Royal Oak â€" FREE

22. LeanBiz WP Theme

23. Tealgrey Retro Theme

24. uDesign â€" Multi Purpose WordPress Theme

U-Design WordPress Theme - ThemeForest Item for Sale

25. Notebook â€" Advanced Custom Posts Magazine

 

26. Awake â€" Powerful WordPress Theme For Business

Awake - Powerful Professional WordPress Theme - ThemeForest Item for Sale

27. Retropolice

28. Classica â€" Minimal WordPress Theme

Classica: Minimalistic WordPress Portfolio Theme - ThemeForest Item for Sale

29. Aquanova

30. Glider â€" One Page Sliding WordPress theme

31. DeepFocus â€" Extremely Elegant WordPress Theme

32. inStyle â€" Innovative Design With Dynamic Background

http://www.toptut.com//HLIC/6022006cb60880c85f63f974add8e264.png

33. King Size â€" Full Screen Portfolio Theme

King Size - fullscreen background WordPress theme - ThemeForest Item for Sale

34. TheStyle  â€" ElegantThemes’ Catalog Styled WP

35. Reviews â€" Rating System Based WordPress Theme

http://www.toptut.com//HLIC/5867049ed1f9c85f440884c7685deb9c.jpg

36. ElegantEstate â€" Real Estate Listing WordPress theme

37. Event â€" Events / Calendar Based dark WordPress theme

38. Platform â€" Pagelines’s Drag & Drop Framework

39. Color Paper â€" FREE

40. MyCuisine  â€" Restaurant Menu WordPress Theme

41. Simply Ornate

42. Swatch â€" Portfolio Advanced WP Theme â€" FREE

http://www.toptut.com//HLIC/5adc3f54dc3dbb1d93a07f7d74068616.jpg

43. Placeholder â€" Free “Coming Soon” WP Theme

http://www.toptut.com//HLIC/ac5a69dc30ddfb13d326b67935b11fda.jpg

44. Corvetalicious

45. Bed & Breakfast

46.  Business Professional Package Theme

business-wp

47. FREEmium WordPress Theme

freemium

48. WordPress Wiki

wpwiki

49. Ambiance WP Theme

ambience

50. FolioTheme

foliothemes

51.  Blog Theme

blog_theme

52. Super Fresh WordPress Theme

blogfreshtheme

53.  Magaling WP Theme

magaling

54. SimpleX

55. Masinop Theme

56. Sten WP Theme

57. Pyrus Theme

58. Dyne

59. Notes of Life â€" Personal Diary WP Theme

60. Bright

61. Firefox Foreover

62. Agregado

63. Vintage

64. Fervens

65. SimplePress â€" Portfolio and Business layout in one

66. Hawaii

67. WordPress Vintage

motor

68. Blues WordPress Theme

blues-wptheme

69. Stylish Grey Business Portfolio Theme

stylish-grey

70.  Sleek Tabs â€" Dynamic WP Theme

sleektabs

71.  Absynthe WP Theme

wallas

72. Intaglio WordPress design

intaglio

73. Christmas v 1.1

xmas2

74. ZinePress Theme

zinepress

75. Comfy Magazine

comfy

76.  Fhu-Zin

thingzine

77. Sketchbook Theme

sketchbook

78. ArtShop -  eCommerce Integrated

artshop

79.  Crafty Cart â€" eCommerce Theme

shopingcart

80. Magnificent â€" Community Blog Magazine

81.  Book Template Theme

portsite

82. Venice Theme

lotus

83. Epsilon Theme

epsilone

84. FantaSix Magazine Theme

fantasix

85.  Pyrus

pyrus

86. Nova â€" Multi Use WordPress Theme / Landing Page

87. Magsess

magsess

88. Magazeen Style Theme

magazeen

89. Blogging Cream

 

free wordpress theme

90.  Compositio

compositio

91. Blue Blog

blueblog

92.  FolioTastic

http://www.toptut.com//HLIC/d90b4e8116c6cbffd672b030bf485cea.jpg

93. Convergence

http://www.toptut.com//HLIC/e32343263450a6a5846b06f6eee605c3.jpg

94. Fonta Theme

screenshot2

95. Bluelight

http://www.toptut.com//HLIC/95b2368686f015dad9f544e938eecc8c.png

96. Foliodelight theme

http://www.toptut.com//HLIC/fa6ed66d8b767373d374ebcb719823dc.png

97. WordFolio WordPress Theme

http://www.toptut.com//HLIC/ec4d0f8726e8c9ba1b437b8fdf209e60.jpg

98. Magus

99. Feather WordPress Theme for Portfolio Sites

100. Memoir WordPress Theme for Personal Blogs and Portfolios

premium wordpress themes

Powered By WizardRSS.com | Full Text RSS Feed | Amazon Wordpress Plugin | Android Forum | Hud Software
 
© 2010 ITechCrunch - Technology, Gadgets, Internet

All information, data, advertisements, applications, listings, services, video and media clip files contained on or made available through this Website are owned by their respective owners/companies. will in no way be liable to you or anyone else for any loss or damage.