Facebook login in a small modal view - ios

In the application I' currently developing, i need the user to log on Facebook. For the time being, a webview filling the whole screen allows that but I would like the login view to be displayed only on a modal view taking just a smaller part of the screen. Does anyone know if this is possible and in that case how to do that ?
Great thanks
Benja

If you're using a webview then I would suggest using our pre-built login feature found here.

Related

How does the Air BnB achieve the user menu?

Using the air bnb app, if you click on the far right icon on the tab menu, it opens a user menu which slides in from the right over the top but only takes up half of the screen. The rest of the screen below is dimmed.
How can this be implemented? Does it require a custom segue or view controller container?
I have seen a similar feature to what your describing done before using a modal segue that instantiates a new view with a partially transparent background. You have given a vague question so I can't really provide a specific answer. Comment if you need more info.
Here is the app I saw it in, from a tutorial.

How to re-position the salesforce login web view in iOS

I'm new in salesforce SDK, I'm trying to reposition the Salesforce login web view so the web view will not cover the status bar. I want to make it a bit lower (y-axis).
Heres the screenshot:
If you use Salesforce1 you cannot reposition login web view. You will see your changes only once you log in. You can modify your detailed and edit pages using compact layouts.
Regards,
Naveen
autorabit

iOS Airprint without displaying popover dialogue box

I am developing an app that needs to be able to print out name labels after a user finishes a registration process. It needs to do this without displaying a popover which is automatically created when using UIPrintInteractionController.
I know other apps have approaches where they print directly after the user touches a print button that is placed in the view controller. Fx the iPrint&Label app by Brother.
How can I create a similar button that allows the application to print automatically without displaying the popover dialogue box?
p.s The application doesn't have to be app store clean, the final application will only be installed on two specific iPads.
p.p.s this is my first entry on stackoverflow, I hope I'm not being to much of a newbie :-)
It is possible on iOS 8 and newer - use printToPrinter:
Docs here: https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIPrintInteractionController_Class/index.html#//apple_ref/doc/uid/TP40010141-CH1-SW34

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/

I want the partial pagecurl effect ,not the full screen

Now I am developing an app on iOS, I need the pagecurl effect, but the all source code I found was full screen! However, I only need the partial screen, not full screen. So I need to know how to do it!
Could anybody provide an example for me?
There's a good reference on the different forms of Modal Views contained in iOS, including the partial page curl, here: on Tim Neill's blog.

Resources