Tip:
Highlight text to annotate it
X
Ok, this last part is quite easy. Follow what I am doing.
I made a little mistake here. Let’s fix it.
I downloaded the ShareKit from its website and now I am going to install it.
Don’t forget to check the Copy items... checkbox.
I will create something like tab bar on the bottom of our view.
Resize it to 59 pixels height.
Now add the Image View into this bar and again, setup it’s background image.
To setup it’s autosizing is quite important, don’t forget to do it.
Add three buttons, since we want share through Facebook, Twitter and e-mail.
Position them accordingly.
Make them little bit higher and change their type to custom to get rid of that border.
Setup all the images. Here we need only two states - default and highlighted.
We need to add three sharing methods.
Now connect the buttons with actions they should call on tap.
These steps are needed, so our app can share through Facebook correctly.
Here I did some copy and paste again, to save time.
Add these three imports so we can add the sharing methods.
Again, a little copy & paste here. You can find the source code on our website.
We need to add a URL scheme so the Facebook sharing will behave correctly.
Steps needed to get a Facebook App ID are described on Facebook developers page.
Next thing we need to do is to fill some keys and IDs in SHKConfig.h.
For security reasons I left X here. Fill it with your own values.
And now the same UI for iPad.
It’s little bit tricky to align all those views. Keep trying.
The bottom bar is little bit higher than on iPhone.
Now the buttons...
Don’t forget to create the connections. Otherwise it won’t work.
Our app won’t compile because the ShareKit needs few frameworks. Let’s add it.
Ok, last thing we need to do are icons and launch images. That’s simple.
Select the MakeItFine project and just choose the correct images in the Summary tab.
Don’t forget to always check the Copy items... checkbox.
Ok, iPhone images and icons are done. Now iPad.
I’m not sure why those exclamation marks are here. But the launch images are still working good.
And now it’s time to test our new application.