How to re-position the salesforce login web view in iOS - 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

Related

Correct behaviour of Google ad in iOS

i am currently developing an app and i will need to implement google ad banner.
I am supposed to display the ad banner in the main view controller. But i have a side menu bar. Currently, when i open the side menu, the ad is blocked.
Is this a correct behaviour? Or is there any way that i can make the ad visible even when the side menu appears?
I know that for android, they would have a gap at the bottom to display the ad, so all the view controllers are shortened by the amount of the height the ad banner has?
Is that achievable in iOS as well?
Yes, you can achieve the Android like behavior very easily in iOS too.
Just create a Parent view controller and embed each controller in it.
Rest of the idea you can take from iADSuite below.
https://developer.apple.com/library/content/samplecode/iAdSuite_Storyboard/Listings/ContainerBanner_ContainerBanner_BannerViewController_m.html#//apple_ref/doc/uid/DTS40013458-ContainerBanner_ContainerBanner_BannerViewController_m-DontLinkElementID_11

Sidebar menu with uitableview in swift for ios

I'm new into ios development. I'm trying to implement a small contact manager application. I'm following a tutorial from this link http://www.kaleidosblog.com/swift-side-menu-tutorial-how-to-create-a-custom-side-menu-in-ios and I followed many, but which didn't satisfy my requirements. What I'm trying to achieve is having a sidebar menu, and have a table view as my main view. Most of the examples showed how to use them with a normal view controller. A clear example is how BBM works on iphone, when you tap more or the sidebar button. From the provided link, is there anywhere to change the initial view to table view? I've tried but it wasn't successful. I'll appreciate any help, My application as to be submitted soon. Thanks.
You can use this link for side bar menu using UITablView
http://www.appcoda.com/sidebar-menu-swift/

Integrating Navigation of iPhone app and Xpages App

I am finishing an iPhone app for my company.
I am using Xcode and Xpages, as we are a Lotus Notes shop.
In Xcode I am using a UINavigation Controller with a Table View for selections. One selection is the Company Directory, which is an Xpage using the Xpages Mobile Controls (Single Page Application and then Application pages, etc.). This works fine EXCEPT for the navigation hand off between the Xcode parts of the app and Xpages. I end up with two sets of navigation controls, which is not good.
Any ideas how I can get around this?
Bryan
OK, I think I figured this out.
It really isn't anything to do with Xpages, but with using UIWebViews within iOS.
The problem was that on the first webView, I wanted to show the iOS Navigation, but in any subsequent ones I didn't want to - would just prefer to use the web navigation.
There is a delegation method in iOS Web views that allows you to show or hide the navigation bar. I added this delegate and just check to see which page I am on. If on the first one, I show the iOS Navigation, else I suppress.
This works great!

IBM Worklight - Is it possible to add UINavigationController as the starting native page?

I am trying to integrate a navigation based iOS application into IBM worklight. However, I am not able to add UINavigationController as its first native page. In the tutorials, they have only explained integrating a normal UIViewController. Since UINavigationController is a subclass of UIViewController, Shouldn't one be able to integrate that as well?. Could some one please tell me if I can integrate a navigationcontroller using "WL.NativePage.show" API.
Currently, I am not able to figure out how to set the rootviewcontroller for the navigationcontroller object.
I do not know the motives for your request so this might not answer your question, but it does offer an alternative.
See the following blog post by Anton Aleksandrov. In it Anton explains how use native controls, which can also be navigation controls in your case, in your Worklight Hybrid application. That is, w/out the need to do it in a "native page".
Essentially, you are still using the HTML file as the "starting page" of the application, but you shrink the Cordova WebView, allowing you to add, place, native controls at the top and bottom for example. There you can place a native navigation control.
Blog post: [iOS] Combining native and web controls in Cordova based applications

Facebook login in a small modal view

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.

Resources