How is the Notes app Details screen designed [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 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.

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.

Swift 3 - How do I implement an accordion-style layout? [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 5 years ago.
Improve this question
I am using Swift 3, Xcode 8.2.
I want to achieve something like the look below:
I want a view where I can have a top heading and label and an intro paragraph along with a line separator but have this "accordion" style layout where users can click to reveal/hide different parts of the information.
Can someone point me in the right direction?
Since there's no actual accordion style layout in UIKit, there's no right answer, you'll just have to roll your own.
Here's how I've done it:
Create a sectioned tableview, each collapsable group of
information is it's own section. Each section should have a section header. Implement viewForHeaderInSection.
The header view could have a label that says 'Yearly Benefit Tracker', etc, and a disclosure image that changes based on whether the
section is opened or closed, like in your example.
Each section has a tap gesture recognizer associated with it.
When a tap gesture is triggered, the corresponding function adds that section to a set of 'collapsed sections'
Reload the table view
When number of sections is called it still returns all the sections
When number of rows is called check to see if that section is in the set of collapsed sections. If it's collapsed, return 0 rows for that section.
Implement the reverse for expanding.

Multiple Views, Which is better UITableView, UIView or UICollectionView [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
Requirement:
iPad application:
Show custom controls in a list, controls are like "Select File", "Image Edit", "Video Edit", "Radio Group", "Checkbox", "Textbox with header", "Panel", "Tabs", "Signature".
Right now i manage custom controls in a UITableView.
Each controls has properties (enble, hidden, editable, secure, color, font, text etc.). Properties can be change by select control from list (tap on row of UITableView), And it will open a property inspector view related to specific control.
Challenge:
Its working perfectly till i have single control for a row. Now i have a requirement to group this controls and display in a single row.
Its difficult to manage a group of controls in a row. Which is better approach to follow?
Use UITableView add group of controls in this and then add UITableView as a cell
Use of UIView
UICollectionView
Posting self answer because the approach for above is now success fully working. Tested for all possible combination for a month.
I continue with UITableView and add custom views in UITableViewCell all events are manage in respective views by delegates.
The complex part in which I have to manage group of controls. For that i created one more UITableView and add it in main table (Here my requirement is not to go for further grouping so it is vital to take UITableView).
Performance:
Tested for performance as well. For device below then iOS 7.0 some times show lag on scrolling. For iOS 7.0 and above devices it works smooth.
Appreciate more answers from other, If any one have gone situation like this.

Fixed number of cells in table view [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I want to fixed number of cells to be shown. If user wants to see more records, he will scroll down to see them.
I also want to add a button at the bottom of the table view to move to other view.
UITableView is what you are looking for.
An instance of UITableView (or simply, a table view) is a means for
displaying and editing hierarchical lists of information. A table view
displays a list of items in a single column.
There are many resources on the Internet that can help you. Example tutorials:
iOS UITableView Tutorial for Beginners
Create a Simple Table View App
To add add button to the bottom of UITableView, just create a UIView(say 320 x 50) and add a UIButton on it. Create IBOutlet of this View. Set this view as footerView of your tableView,
self._table.tableFooterView = yourView;

Laying out a view with Xcode [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
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.

Resources