Swift: An appstore like app using scrollview - swift

I am trying to figure out how to make/design an app that navigates similar to the appstore where the first row is a set of pictures you swipe horizontally then you have like a list of table value. How would i go about doing this ?

You would use a Container View with a UICollectionViewController, a UITableViewController or implement your own custom UIScrollView

Related

How to add UILabel and UiImageView to a UIView inside table view cell programmatically?

How can we add a label and a imageview inside a u UIView view which is placed inside a uitableviewcell. I want to build a chat screen like whatsapp, in-order to build the screen I want to append the label which is to display the chat messages and image view to the UIView which is placed inside the table view cell.
If you want to do it fully programatically without storyboard you can watch this video for creating custom cells and views.
video by Brian Voong https://www.youtube.com/watch?v=p_ak_ORr3KY&list=PL0dzCUj1L5JE1wErjzEyVqlvx92VN3DL5&index=4
or you can do this using storyboard
I mostly prefer mixing storyboard and code mainly because of adding/editing constraints I find much easier with storyboard.
video by Kilo Loco
https://www.youtube.com/watch?v=Wu5l4e5uW4w

Multiple images on a custom table view cell (Swift)

I'm trying to think of how to best solve this...currently my app supports a user uploading and saving an image to Parse and then retrieving it to a UIImageView on a custom table view cell. However, how would I go about implementing multiple pictures where a user swipes the top picture and the next photo is shown, all in the same table cell? Does this require a new view? If so, how do I do this?
Thanks!
Follow that tutorial that Caleb recommended but you could also use a gesture recognizer on your custom cell. You can design the cell in the storyboard, make a subclass from UITableViewCell and connect the components via outlets to your custom class.

JSQMessagesViewController in half screen ios swift

I am going to create chat app using ios native sdk (Swift) and i found JSQMessagesViewController for chatting.
Can I use it in my app and apple will allow this?
Also I have inherited JSQMessagesViewController in my viewController.
I have used NavigationController also in the viewController.
When I open the viewController it open in full screen but i need it half screen.
Can anyone help me ?
Thanks
Yes you can. Set up a container view that takes up half the screen and create a custom subclass that uses JSQMessagesViewController for the container view.
Make sure that you have appropriate constraints set up such that the container view only takes up half the screen and the other half contains whatever view elements you want.

Whats the approach to create a view similar to the one at apple app store

I wanted to know how can we design the view controller such that.., the upper half of the screen remains fixed and the below part of the screen can be navigated through.. !!
Should we use slipScreenController here ?
Your description sounds nothing like the Appstore app but the Appstore app simply has one vertical UIScrollView and another horizontal UIScrollView inside that for images.
If you are referring to browsing categories in AppStore then:
That is a tableView implemented in such way that it doesn't take the whole screen area. You need to create a UIViewController (not UITableViewController) and than add a tableView to the view (using Interface Builder or code). That way you can change the size and position of the tableView and use the remaining area of the view for something else, for example a UISegmentedControl above the tableView.
If you are reffering to reading description and images of single app then I think that UIScrollView is used for displaying images, not sure about the rest.

How to realize the same effect like iPhone's homescreen

I want to add some custom buttons and realize the same effect like the iPhone's home screen. What I can think of is to calculate the position of each button and add them to the view. Are there any other ways to do this? e.g. add buttons to the tableview
Check TTLauncherView from Three20,
I realized the same view of the thumbnails in the photo app (which in principle differs only because of the background color and the rounded effect of the buttons) using a custom cell (with 4 UIButtons inside) in a normal tableview.
In my case, this is because I need to scroll up and down, in your specific case there should be a way to "lock" the table from scrolling. By the way, for this reason, it could be simpler to design the custom view in the interface builder, it is very quick to design such a view, and then create a custom controller to provide simple methods to assign icons and actions to the UIButtons dynamically.
You could also look at the Three20 libraries as already suggested, it is already implemented, but you app will easily be rejected by Apple if you do so.