How to add images to the coverflow dynamically and update coverflow view? - ipad

I've implemented OpenFlow library for my iPad application. http://apparentlogic.com/openflow/
After setting the initial view, I'm adding the cover images dynamically to the coverflow view. The coverflow view is getting updated. But my problem is i want to show the same cover which is recently added to the cover.

Related

iOS Auto Resizable Container Views

I am building an iOS app with multiple screens but I want avoid duplication of code as well as one large storyboard. Ideally I would like to load the various View Controllers based on a selected storyboard in my content view when needed.
The template of the screen (Master/Root View) shall be composed by 3 Views, namely:
View A that acts as a Navigation View,
View B where the various View Controllers should be loaded based on user actions and,
View C, much like a Tab bar or a 3rd View where I can display some
circumstantial information.
Now, of course I could go with a traditional UINavigationController and UITabBar but I need greater control over those views, notably in terms of size (they have minimum heights that are larger than the ones for NavBar and TabBar).
I also need those Views to resize based on the Traits and Class Size to keep filling the entire screen.
I am trying to use container views to doing so, but I can't get them to resize automatically despite having tried a different set of constraints in auto-layout. Putting the 3 views in a stackview does not do the trick either.
Ultimately I would like to be able to work separately on my various Controller Views that will be loaded in View B, using their own storyboards, calling them programmatically in B and having everything automatically resized.
Thank you all for your kind and valuable input!
Chris
When using addChildViewController(childVC) / addChild(childVC) (Swift 4.1 / 4.2), followed by myContainerView.addSubview(childVC.view) you need to either
add constraints for the added subview
or
set the frame of the subview and .autoResizingMask
After that, your newly added subview will layout and resize correctly.

UITableView not appearing in UIScrollView

I am combining what was previously two separate views into one unified view inside a UIScrollView. One of the subviews I am dealing with is a UITableView that is used to display user data in a visually appealing manner.
Here is how I would like the UI to look:
but when I build the app with this view the table disappears. When I move the table further up on the screen though it displays, but with weird dimensions:
.
I do not know what is going on here or how to debug it. Has anyone encountered this behavior before and know of a possible resolution?
Never mind, looks like I solved it. I embedded the UITableView in a UI view and set the layout rules for the UITableView to fill the parent view, and I then applied the layout rules to UIView to position it where I wanted.

Using parallax scrolling for a UIImageView

I am looking to create a simple parallax scrolling effect on an image view that is embedded in a UIScrollView in swift (actually, I have the image embedded in a view that is, in turn, embedded in the UIScrollview). This is the layout I am working with:
As you can see from the screenshot above, the image is larger than the UIImageView to which it is assigned. When the user scrolls down the screen I would like other (vertical) portions of the image to become visible, such as in the example given in this tutorial. The tutorial, however, uses a collection view to display a mutable array of images and I could not figure out how to adapt it to my purposes. Does anyone have an idea as to how to accomplish this?

Adding parallax effect to image

This is the situation:
I got the two image view on top of the view, and on the bottom is a container view (the one with the segmented control) that can be dragged upward.
Now, is there a way to add a parallax effect to the background image (the one with the blur) as I drag the container upward?
A I can see you are working on iOS 9 so you can use InterploationMotionEffect available from iOS 8. I have also created example for the same ParallaxEffectExample
Example is in swift & having two example set. First one as manual & second one using InterploationMotionEffect in UITableView.

Rectangle Layout in IOS Collage App

I want to make a collage application like "Pic Collage"
https://itunes.apple.com/in/app/pic-collage/id448639966?mt=8
Here I am stuck in a functionality in which we can make collage for predefined rectangular layouts.
When we select any layout the pictures on screen automatically fitted in the selected layout design and layouts are dynamic with number of pictures on the screen.
Please suggest how this functionality of creating layouts and fitting images in the layout can be implemented?
Following is link to layout that I am looking for:
1. https://www.dropbox.com/s/ge4mhx9vkyb9s2n/IMG_4914.PNG
If you going to use templates as shown in the application then you can be sure of how many grids would be needed. In that case based on the selected template you could use variations of UITableview and AQGridView. You can customize it according to requirement.
Also you could look into Collection Views.
I would have probably added multiple UIImageViews based on the templates and provide feature for addition of images by handling the touch event.

Resources