Change TabBar IOS - ios

I am developing an application with Xcode for iOS. The application is about taking picture from the camera or picking from the gallery, saving it and sharing it to Facebook.
In my first view, I have a UITabBar (1), when I click on Take picture button a UIActionSheet appears like this. (2)
When I choose to take a picture from the gallery, for example I choose the picture and I display it , is it possible to change the UITabBar from (1) to (3) when I display the picture that I choose and is it possible to change the UITabBar to something like picture (4) when I save the picture ?
Here is the image:
PS: In the facebook page and twitter page i click on those button to go to facebook page and twitter page.
Sorry for my Bad English and Thanks in advance

Related

How to open Saved Photos Album when touch a button? [duplicate]

I am trying to write an app which involves picking a picture from either camera or library. Once the picture is picked , I want to show the preview of the picture.It happens by default when camera is opted. Once the photo is clicked, it shows the user to choose or retake. But I want the same to be done when the picture is selected from the photo library also. Can this be done??
Ok thanks for the response. Here is what I did:
Subclass UIImagePickerController . Upon picking an image, I am pushing another viewcontroller which is similiar to preview screen. This is similiar to facebook app and so I think it will get approved by apple.
I may be wrong, but I think you need to implement the custom view yourself. You can use the delegate callback method to get the selected image and put it on your custom view along with buttons (choose or retake).

UiImagePicker custom part

in my app and I'm using UiImagePicker also implemented UiNavigationControllerDelegate for some customizations as the delete key and the back button.
When the user browses the images from its library and chooses one, if you AllowEditing is enabled, the image picker shows a screen for cropping the photo ..
At the bottom of this view seems to be a TabBar controller with two buttons:
Choose Cancel and
I wanted to know if anyone knows how to change the text of these buttons ...
Can you help?
There is no supported API that gives you the ability to customize those buttons.
Perhaps the best solution is to find a custom replacement for UIImagePickerController. There may be one on github or Google code.

UIActivityViewController with integrated gallery (like in the stock Photos iPad app)

If you launch the Photos app on iPad (iOS7) and tap the action button, you get a UIActivityViewController whose top half is made of a multi-select gallery, from within which you can select any number of items. The sharing options automatically adjust from your selection (for example "Twitter" and "Assign To Contact" disappear if you select more than one item).
I have found nothing that appears to support this in the iOS7 SDK, so I wonder if this feature is unavailable to developers. Does anyone know how such a thing can be done?
When using a UIActivityViewController you can set an array of items that you wish to share. Normally this is just an image and maybe a string (for tweeting an image, for example) however if you add multiple images to the array that you use in - (id)initWithActivityItems:(NSArray *)activityItems applicationActivities:(NSArray *)applicationActivities; you can share more than one image (and such 'Assign to contact' or 'Tweet' aren't available because they need only one image).

Swiple photo inside the content div rather than opening in gallery mode

I am planning to use photo Swipe like the iOS facebook app. Which allows to scroll the image with in the content and when we click it open in gallery. Some thing similar to http://www.mobilizetoday.com/freebies/touchslider/examples#ex-2 but when we click i need to open the gallery view of photo swipe.
kindly advice me how to proceed about this.
Wanns try this? This one is for mobile gallery.
DEMO http://www.photoswipe.com/latest/examples/04-jquery-mobile.html
WESITE http://www.photoswipe.com/

Facebook like button in iPhone native application

This question seem duplicate but problem is that other question are old or not giving answer as my need.
What I have done:
I have integrated facebook for iOS 5 and iOS 6 both and it is sharing on wall properly.
Problem
My application have a UIButton "LIKE" to like my application page on facebook.
I want that if user click on this button he should be able to like that page.
I have search for hours but not able to get any proper solution.
For iOS 6 I get following link of apple iOS 6 site
iOS 6 with facebook
Here in third segment it show an image where app page is open in UIViewController with facebook like button.
and it said that we can open it without leaving our app.
I search but don't find how to open this page in UIViewController as we open dialog for share.
Ask me if you need more information.
Happy to get any kind of help or information.
As far as I know, the app shown by Apple with the Like button integrated (i.e. the App Store) is using a webview to display its content. This button is not something you get from a native code. The reason is that Facebook don't wan't to get Like actions without a user action to trigger it (I heard that from a Facebook guy at the App Day 2012 conference in Paris). And the only way to ensure that is to encapsulate and hide that in an HTML component.
What I would suggest is to instantiate a small webview displaying a page containing only the Like button of the desired page. Let us know if it work! ;-)
Mathieu is right, there is no way you can do that with a normal UIButton.
You have to use an iFrame (loaded in a UIWebView) if you want the button to like the page immediately. I did not like this approach as it takes some time for the iFrame to load.
More information can be found here: http://www.raywenderlich.com/1626/how-to-post-to-a-users-wall-upload-photos-and-add-a-like-button-from-your-iphone-app
I ended up having a UIButton that opens the Facebook page in Facebook.app or Safari.app. The user has to press the like button manually.
It's just allowed for testing purposes and iOS only.
check this out
https://developers.facebook.com/docs/ios/like-button/

Resources