iOS app : Hardcoded to Storyboard - ios7

I'm trying to transform an app hardcoded, not using storyboard ( view/design/segue harcoded ) to a view with storyboard/scene.
So I'm working on an app that has several functions (login/out, home, notify, data) that majority have similar layout : the same header picture, similar input fields, etc.
So I wonder if there is a solution to transform it into a storyboard with all view of the app ?
Or everything has to be re-coded ?

Related

How to implement a Xamarin Forms SwipeGesture on small screens

I have a Xamarin Forms app where I add to a MAIN VIEW 3 views: view 1 / header, view 2, view 3.
On Desktop I want to have them (and I already have them) this way:
What I'm looking is a different behaviour just for small screens. I would like to "show/hide" view 2 & view 3 with SwipeGesture, and have something like this:
Whenever I swipe, I get View 3 individual. If I swipe back, I get View 2. How can I make it through SwipeGesture? Maybe combining with OnIdiom, but how? What if the desktop app they have resized small? That's why I want to have something like breakpoints of the screen instead of OnIdiom.
Is there a way to do it on XAML without code behind?

React Native - Odd spaces on iPhone X

When i try to build my app to simulator running iPhone X there's an odd spaces on top and bottom of the screen as shown in the image. It's supposed to be full screen. Any idea how i can fix this? Thanks in advance.
i am running rn v0.47 and xcode 9.
Probably you are setting the launch screen as images, try by setting the LaunchScreen as a storyboard and be sure to have the Use Safe Area Layout Guides active on it.
If you don't have a LaunchScreen.storyboard you can just create a new one an set it, or create a new empty project and just grab the existing LaunchScreen.storyboard and copy/paste it to your current project.
Camo's answer is right. The issue is related on splash screen. But i just wanted to share how i fixed my issue since I am not using storyboard for my launchScreen.
So first i created a new launchscreen image with dimensions 1125x2436(portrait) and 2436x1125(landscape) and added it to my launchimage directory.
And then updated the Contents.json file adding this 2 configurations:
{
"orientation" : "portrait",
"idiom" : "iphone",
"extent" : "full-screen",
"minimum-system-version" : "11.0",
"filename" : "1125x2436.png",
"subtype" : "2436h",
"scale" : "3x"
},
{
"orientation" : "landscape",
"idiom" : "iphone",
"extent" : "full-screen",
"minimum-system-version" : "11.0",
"filename" : "2436x1125.png",
"subtype" : "2436h",
"scale" : "3x"
}
Update your LaunchImage assets.
I had an old LaunchImage asset that did not include the iPhone X(s) sizes. I tried "refreshing" or "updating" the existing LaunchImage asset, but couldn't do that. Instead, I just deleted the existing one and created a new one.
That fixed the bars on the top and bottom of the actual app after the launch screen is done.
My guess is because Apple assumes that if you don't have the proper LaunchImage for the taller iPhone X(s) screens, then your app isn't optimized for the new screen so instead of breaking your app layout, it just uses the limited screen size for compatibility.
If you need a good template for making the updated Launch Images, here's a free Sketch template that I used and it worked great:
https://www.sketchappsources.com/free-source/1122-ios-splash-launcher-template-sketch-freebie-resource.html

Storyboard for iPhone-only application displaying iPad sizes?

I am following along with a tutorial on Lynda.com and I am using XCode 6, while the tutorial uses XCode 5, so perhaps this is the problem. I have created a tabbed application and set devices to iPhone but my storyboard file looks like it's displaying iPad sizes. Why is this? My storyboards for other projects are not displayed like that.
In Xcode 6 Main.storyboard is the single storyboard for all devices, no matter their screen size. Open the storyboard and you’ll see that it contains a single view controller, but of an unfamiliar size. Storyboards in previous versions of Xcode had to match the screen size of the target device. This clearly isn’t possible with the “one storyboard to rule them all” approach, so the storyboard is given an abstract size instead.
Please check this tutorial :
http://www.raywenderlich.com/83276/beginning-adaptive-layout-tutorial

How to add animation like Photos app

I want to add animation beetwen Views like in photos app. I've download a sample code from: https://developer.apple.com/library/ios/#samplecode/ViewTransitions/Introduction/Intro.html
And i know there is an animations types:
UIViewAnimationOptionTransitionNone ,
UIViewAnimationOptionTransitionFlipFromLeft ,
UIViewAnimationOptionTransitionFlipFromRight ,
UIViewAnimationOptionTransitionCurlUp ,
UIViewAnimationOptionTransitionCurlDown ,
UIViewAnimationOptionTransitionCrossDissolve ,
UIViewAnimationOptionTransitionFlipFromTop ,
UIViewAnimationOptionTransitionFlipFromBottom ,
but what if i want to add effect when i swipe from left/right my screen will enter just like in Photos App
The Photos app does not use multiple screens to display the photos, there is only one ViewController, which contains a UIScrollView. And in the scrollview, many UIImageViews are added (and the pagination property is set to YES) so that when the user swipe with its finger, it sees the different views appear with the photos.
Here you will find a tutorial on how to precisely achieved this effect
This code is reuseable and comes with all the functionality you will need, used it in a previous project and was very good. Link: http://www.cocoacontrols.com/platforms/ios/controls/fgallery

How can I achieve this style in iOS?

In my app, I'd like to show a popup screen within my UITableViewController screen listing a few options for the user to select from.
Similar to how the Facebook app works (unfortunately I have no requests) :(
So I have two questions:
1) The black, shaded frame we see here seems to be a common style that I see a lot, especially in iPad apps. Is this just coincidence that apps use the same style? Is it a 3rd party plugin that others are using? Or is it a new, native part of the iOS SDK?
2) If I am to build this subview myself, what kind of structure would be best? I'd thought of:
UIImageView (for the background) >
UILabel (containing the header)
UITableView (containing my sub-table)
Thanks in advance
It's UIPopoverController, native component for iPad, but not for iPhone.
For iPhone use 3rd party frameworks, like this one:
http://www.50pixels.com/blog/labs/open-library-fppopover-ipad-like-popovers-for-iphone/