how to come back to different view after opening the safari through another view in iphone application? - objective-c

I'm using tabbar based application. I have 9 tabbar items. I'm calling the safari in my 6th tabbar item. When i close the safari and open the app again i want my app to open the 2nd tab in the application. Can any one help me out in this issue.
Thanks

Try programmatically set tab bar selected index to 2 applicationDidBecomeActive/applicationDidFinishLaunching(if your app does not run in background). You can search on google and you will easily find the answer.

Related

How to show a portion of next screen in previous one in react -navigation?

I am creating tabs in my app using react-navigation by createTabNavigator.
What I want to do is how can I show a portion of next screen in tab in the current screen. The Idea is to show the user that there exist another view
What I have already done is that everything except the for showing the next screen in current one, is there any prop or option that will allow me to shrink down the page container?
This is not possible with react-navigation.
Try using a carousel library like react-native-snap-carousel (https://github.com/archriss/react-native-snap-carousel). As you can see in their showcase apps, this library does exactly what you want.

Is it possible to programmatically force an ios ap in split view to go full screen in ios9?

I am developing this app for ipad and ios9 and at some point the user will click on a button to watch a video. But I wouldn't want the user to just see it in the split view size he's currently on (like 1/3rd or 14th) instead I would like the app to close the other open app and for it to take over the entire screen.
Does anyone know if that's possible? Thanks.
By-default, the video always get played in full-screen mode. When video playing is finished, the player gets dismissed and you will see your screen (from where you played the video). In your case, in split view controller.
Do let me know if you need further details.

LaunchScreen and Storyboard in Xcode

I am New to IPhone Development.I am Creating a sample app to just know how to make Iphone apps. I came across Launch screen and Storyboard in the project Description, But was not able to understand what is the role of launch screen and Storyboard.Can anyone plz explain briefly about both. Can i Delete LaunchScreen.xib from my project.?
See Launch Screen is something in which you can use that as
Splash Screen or Start Screen for your application.
In StoryBoard only you can create all the front end functionality of your application so both StoryBorad and LaunchScreen are important don't delete it.
Launch Screen is always first screen of your app. Also according to apple, "You use a launch XIB or storyboard file to indicate that your app runs on iPhone 6 Plus or iPhone 6."
While in Storyboard you create rest of your applications screens.
For more info about Launch Screen refer this
And Storyboarding is here.
Hope, this helps.

Rubymotion implementation of the previous/next buttons in the webview

I'm new to iOS development and recently started out with rubymotion.
Im currently working on a "start page" kind of application that loads an in app html/css/js file in a webview. The "start page" then links to different sections/pages on (a to be released) responsive design version of http://hiof.no .
My current build of the app is based on the PaintHTML example:
https://github.com/HipByte/RubyMotionSamples/tree/master/PaintHTML
The feature I'm stuck on at the moment is previous/next page navigation to navigate back and forth in the webview history.
The idea of the navigation feature is to have previous/forward buttons positioned fixed on the bottom left side of the app similar to the Path app "new content" button.
Any ideas how I can implement access to the webview history with "native" rubymotion code?
the UIWebView have to methods UIWebView#goBack and UIWebView#goForward,
create two button and set the action to #webView.goBack and #webView.goForward; and you can enable the button with the methods [UIWebView#canGoForward and UIWebView#canGoBack]
Documentation

UITabBar not selected during app startup

I'm trying to replicate the look of my app during start-up with how iTunes and App Store appear.
Specifically my app has a tab bar that will get populated when it has finished downloading info from a web site - until then it should look empty. The only way I can appear to do this so far is to have an empty name and image for the UITabBarItem. It's only minor, but this item is 'selected' and is therefore a "lighter" color.
I got around this by showing an image that I created by taking a screenshot of the App Store app then showing this during app loading. When ready to populate the UITabBar simply add the bar items they are shown immediately.