Laying out a view with Xcode [closed] - ios

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am new to iOS development so the question may sound easy.
How can I layout a view like the one we can see in Facebook app's post details? At the top the post details can be seen, below that there are buttons to like comment etc and below that there is a scrollable comment list. At the bottom of the screen there is a static Add Comment section that never disappears.
Which controls should I use?

Top part is a UITableView. The cell is big and is further subdivided in 3 parts (each cell will look the same).
Part 1 has image, message, etc.
Part 2 is just three button links.
Part 3 is a button with a link as well. Links can be done with buttons, labels, etc.
Each item (example button) most likely has a method that loads that specific view. Because of the navbar they are most likely pushing the view on a navigation controller stack.
Bottom "slide" part is a view with a text field on top. Then when tapped it is animated and moved up, so it's visible on top of the keyboard.

Related

Custom page controll with words instead of dots - Swift [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I am currently making a timetable in a collectionView.
I want the user to scroll through the weeks using paging in the collectionView.
I am struggling to change the dots into words like: Monday, Tuesday, Wednesday. IS this possible using page controll, or should I code from scratch? See image for example
You can try this pods, I think it will help you.
https://github.com/rechsteiner/Parchment
Parchment is a very flexible paging view controller. It let’s you page between view controllers while showing any type of generic indicator that scrolls along with the content. Here are some benefits of using Parchment:
https://github.com/xmartlabs/XLPagerTabStrip
XLPagerTabStrip is a Container View Controller that allows us to switch easily among a collection of view controllers. Pan gesture can be used to move on to next or previous view controller. It shows a interactive indicator of the current, previous, next child view controllers.
I think you can make it custom components. It's easy to implement.
Take UICollectionView to this paging options. And add UITableView below to UICollectionView.
Change your data after select any item in UICollectionView.

How to let a user duplicate a view [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I've a countdown app, it counts the time towards and since a date that the user chooses, and would like to know how to allow a user to pick more than one countdowns.
I'm thinking if there is a way to let the user duplicate the view, but I could be far from right, I'm new to this.
Any help would be much appreciated.
Thanks.
Given the requirements that you mention on your question and the follow up comments, I think perhaps the best is to use a horizontally scrolling collection view, with each cell taking up the whole screen.
(before the advent of autolayout, I would have recommended a UISCrollView with the content size varying at runtime as you add pages, but setting up UISCrollView correctly with autolayout is a steep learning curve. UICollectionView and UITableView take care of this for you behind the scenes).
The setup would be like this:
In the storyboard, embed your view controller in a navigation controller, so you can (perhaps) have your "Add Countdown" button as the navigation bar's right bar button item.
Next (still in the storyboard), add a collection view to your view controller and wire any outlets/delegates/etc.
Implement your data source so that it reflects how many countdown objects you currently have, and set up the "add" button so that when tapped, it creates a new counter and refreshes the collection view.

Tricky transition in custom view [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Good day everyone!
A customer asked me to implement a view. Here you can download and look at video how this view should work. (Left cells are days, right - hours)
It's kind of calendar view.
I've tried to do this task with collection view and custom layout. But do not hit much success. Because of the tricky transition of left cells. They become smaller (to speed up scroll), but right side is still the same.
Is there any possibilities to create such transition in collection view or picker view? Or should i use base view with overriding draw method?
Regards, Eugene.
It's a calendar, so it's essentially infinite, so I don't think a UICollectionView or UITableView is appropriate for this (e.g. what would you return as the number of cells?).
I'd be creating custom UIView subclasses for the left and right side, and overriding drawRect.

How is the Notes app Details screen designed [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
So I am working on a Popover view that shows a few settings similar to what the iOS note app does when you tap the info icon next to a note. However, I am quite new to iOS development and I'm a bit unsure how that view is composed.
Take the "Remind me on a day" section. Is that just a static UIView with a UILabel and a switch, or is it actually a 1-row tableView with a custom cell?
You can use a grouped table view and then use the individual controls such as the switch and segment control as accessoryView for each table view cell.
Or you can design this entire screen in the nib or storyboard itself using static cells. Then you can connect their target/action to your table view controller class and add the appropriate code.
A UITableView, with Content set to 'Static Cells' and Style set to 'Grouped' in interfaced builder. There are 3 sections, with 1 cell in the 1st section, 1 in the second, and 3 in the 3rd. The sections have no titles. It's embedded in a navigation controller to provide the 'Settings' title and 'Done' button.

Tableview swipe in iOS [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Hi I'm new to iOS Development. I want to design something similar to Groupon app for iPhone.
I need 4 or 5 table views (each table view is a category which lists the products in that category )which I can slide or swipe through like in the Groupon app.
I'm confused on whether I should have all the table views in one page view which can be swiped through or one page view per table view.
Any help is appreciated.
Thanks.
UIPageViewController does exactly what you need:
A page view controller lets the user navigate between pages of
content, where each page is managed by its own view controller object.
Navigation can be controlled programmatically by your app or directly
by the user using gestures. When navigating from page to page, the
page view controller uses the transition that you specify to animate
the change.
Here is a very nice tutorial on how to implement it:
http://www.appcoda.com/uipageviewcontroller-tutorial-intro/

Resources