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

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.

Related

How to customize a UITableview's index look? [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
http://imgur.com/rxVYsV2 - reddit's index
I want to create an index similar to the one in reddit's app, especially adding icons to it and having it highlight the letter(see link for picture).
Any suggestions for how to do it(in xamarin ios)?
Since, you didn't ask for code, I'll just help you get started. :)
Use a UITableView to create a row, a cell would be like
Add another UITableView to create the side listing, with just an alphabet as cell. Something like
Now, on selection of any row from the second UITableView, modify the highlight and scroll the left UITableView accordingly. As well as on scroll of left TableView, change the highlight according to the first alphabet.
UPDATE
For StoryBoards follow the following steps:
Drag and drop two UITableViews in StoryBoard, place and resize them however you want (according to the layout you want), apply constraints.
Give each StoryBoard a reference like you do for other elements such as buttons etc. or give them a Tag.
In your ViewController make two Nested Classes, two of them for 1st TableView, one inheriting from UITableViewDataSource and other from UITableViewDelegate. Override the mandatory methods (link).
Now once you have the classes done, assign them to your TableViews like
//With Tag
UITableView myTableView1 = (UITableView) this.View.ViewWithTag(1);
myTableView1.DataSource = new MyTableView1DataSourceClass();
//OR
//With reference
myTableView1.DataSource = new MyTableView1DataSourceClass();
myTableView1.Delegate = new MyTableView1DelegateClass();
Please look at Create UI Objects for more help with making objects.
Please upvote and mark it as the correct answer if you feel it is. Besides, let me know if you need more help. Have a great time coding :)

IOS how do i make a collapsable menu like this? [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
Hi there. Im new to ios, and i've been giving this assignment. I need to make a expandable/collapsable menu that can hold controls.
I have no idea on how to achieve this, and searching the internet has not proven fruitful - except for some navigation dropdown menus like this:
https://github.com/nmattisson/DropdownMenu
which is very nice, but ment for navigation, as i see it..
Any ideas? Thanks in advance
EDITED: Apparently the question was to broad.. I'll try to elaborate.
I need a menu i can place in certain viewcontrollers - each different viewcontroller can have different options, and often many different options. Therefore i need to add a menu that can be collapsed/expanded by a touch on the arrowbutton - as illustrated on pictures, and the collapsable menu must be able to contain different controls, depending on the context of where it is used.
After more research, i'm thinking a the usage of a container might be a part of the solution, and some animation to handle the expand/collapse.
So basicly - the menu could be something like the equivilant of an Android fragment, that can be inserted in the activities needed.
I hope this makes more sense.
You will try to play with Autolayout constraints ,
Ex : The height constraint of the container view is 60 in expanded mode ,if you want to collapse it change it to 0.

Any ideas for realizing this "feature"? [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'm currently developing an iOS app for my company and I'm really new to app development. I have a styling guideline from our companys' art agency.
Here is an example of what I'm trying to accomplish.
As you can see on the pictures' bottom there a some "stacked" / "overlapped" panels (where the arrow is pointing at) The first one should have a title and content - the other two just an title. There should be no functionality (just by touching on them as a whole, to navigate to the detail view) - but I have no clue for realizing this.
I had a look at UIStackView but im not sure if this is the right control for doing this.
Is there a control for doing this, or do i have to place those views manually?
If you truly don't need any other functionality other than tapping on them you're going to have to layout three UIViews yourself like you see in the picture.
It looks like the top one is a UIView with room for a title Label, a time label (maybe?), and a detail Label. So start with a UIView, create your labels, and add them in one by one to the top view, taking care to set AutoLayout up correctly so the views are aligned like you see.
I would reccommend creating the back UIView first, then adding it, create the middle one, add it, then create the last one and add it. This way they will automatically be setup in the correct order "depth" wise
Edit: As you said your new, let met me add one more tip on how to implement this - I would put the layout of the three UIViews and text into a separate UIView subclass. Then, you can simply instantiate an instance of that UIView subclass and place it where you need in your layout like you would any other type of view or control.
Basically, by making your own subclasss, you create your own control that you were looking for originally.

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.

What does an Apple weather page consist of? [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 7 years ago.
Improve this question
I am currently developing an app which needs a page like the one in the apple weather(the default one for Apple device). The whole page can scroll vertically, for the hourly weather report part, it can scroll horizontally.
I wish I can demonstrate with a picture but I don't have enough reputation. Sorry about that.
Does the Apple weather page consists of one tableview with 3 cells (the hourly horizontal scrolling cell, the weather predictions for next 10 days cell, and the details for today cell) or it consists of tableviews with 1 cell each?
Anyone has ideas? Thank you in advance.
Yes, it is one tableview with different cells. Horizontal scrollable part you can create with UICollectionView. If you want float effect for this part, you need use it as UITableView section header. If you want this part was a usual part of the table, you need use it as UITableViewCell subview (Example).
The best way to achieve this is by using UIPageViewController, then use UIViewController for each page. You can find more about the basic principal of it here.
Place your desired UITableView inside the intended UIViewController in the UIPageViewController.
Hope this helps.
All the best.

Resources