iPhoneAppStepByStep 4: Install and configure ShareKit (Facebook, Twitter, E-mail sharing)

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
2,791
Loading...
Alert icon
Sign in or sign up now!
Alert icon
There is no Interactive Transcript.

Uploaded by on Jul 25, 2011

XCODETUTORIAL.INT-INNOVATIONS.COM
1. We'll use ShareKit for sharing on Facebook, Twitter and Email. To install it, follow the instructions on getsharekit.com/install/
2. Now we need to add sharing buttons. Start with the iPhone version and then repeat the same with iPad. First add View which will act as a container for buttons and also for background Image View. Resize it to 320x59 and set its color to clear. Set horizontal autoresizing and bottom autoposition. Add Image View to this View and set its Image to bl_.png.
3. Add 3 Round Rect Buttons to this view and position them accordinly. To left button, set left autoposition and right to right button. Change their Type to Custom. Set their images from left to right as this: fb1_.png for Default state and fb2_.png for Highlighted state. tw1_.png and tw2_.png and for last button mail1_.png and mail2_.png.
4. Add sharing methods to MakeItFineViewController.h after the - (void)stopProgress;
5. In MakeItFineViewController.m add this code after the - (void)stopProgress; methods
6. In MakeItFineView_iPhone.xib create connections (by dragging with ctrl key pressed) from all three sharing button to File's Owner and select appropriate methods.
7. Select MakeItFineAppDelegate.m file and add this line after #import MakeItFineAppDelegate.h
8. And these lines after @synthesize window=_window; in MakeItFineAppDelegate.m
9. And these lines after #import "MakeItFineViewController.h" in MakeItFineViewController.m
10. Open SHKConfig.h file in the ShareKit group and setup your sharing services. You can find the instructions in comments right in that file.
11. Only thing needed to finish our app is to add icons and launch images. So first let's do it for iPhone. Click on the MakeItFine project in Project Navigator. Then select the Summary tab. Right click on first of App Icons for iPhone and navigate to 57x57px.png and press Choose. For Retina, select 114x114px.png. For Launch Images use Default.png and Default@2x.png for Retina Display.
12. For iPad use 72x72px.png as icon. As Launch Images use Default-Portrait~ipad.png for Portrait and Default-Landscape~ipad.png for Landscape mode.
13. Congratulations! Your first iPhone/iPad app is done. If you need help or have some questions, feel free to ask on our Facebook page at http://www.facebook.com/pages/How-To-Make-Your-First-iPhone-App-Step-by-Step/...

  • likes, 2 dislikes

Link to this comment:

Share to:
see all

All Comments (1)

Sign In or Sign Up now to post a comment!
  • Hi. I dont really understand your tutorial.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more