What does an Apple weather page consist of? [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 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.

Related

Swift - Paging with CoreData and CollectionView [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 months ago.
Improve this question
What is the correct way to implement paging in a CollectionView with CoreData?
I have thought of 2 methods.
The first involves showing a defined amount of objects, increasing it when the user moves to the top of the CollectionView and finally reloading the data.
The second would be to manipulate the size of the cells to assign a value of 0 to all those that I do not want to show until the user moves to the top, once this is done, reload those cells to assign them their debit size and make them visible.
Is any of these a good practice or is there a better one?
For what I understand, you're using load more cells when the user scrolls to the top?
If it is what I understand, you could customize the collection view layout to add cells from bottom to top. I have built a load-more collection when the user scrolls to the top here: https://www.dropbox.com/s/0ccd34cn05b01ua/ReversedCollection.mov?dl=0
An example can be found here.

what should I use to show very large static content data ? UIView, UITableVIew or UITableViewCell? [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 5 years ago.
Improve this question
I want to show a large amount of content with images.
It is kind of blog which contains some information with pictures.
I don't have any API, I have to show/write data manually (Hard-coded).
So, which will be the correct way to achieve this?
UIView 2. UITableView 3. UITableViewCell
For example : Seen below image, this is the sample, same way I want to impelemt. It is just some view, it contain very large data. When you scroll it will display more details.
I would recommend using multiple UITableviewCell approach with core-text ability to render text as in the screenshots mentioned.
Also, I would like to highlight that UITableviewCell is having issues in calculating auto height provided NSAttributedStrings based rendering
I think it's suitable to use UITableview with 2 custom cell one for images and the other for text , remove it's separator style and prevent selection give the label 10 margin from all directions and set .lines property to 0 , also use attributedString to set different fonts , colors to a specific range inside the text of the label
Can use tableview with custom cells. As its row height will be dynamically handled so no need to do much more complex process and easy to build.
Use UIScrollView if the content will be static (e.g. header and content). Because using UITableView will be redundant.

Collectionview or tableview? [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
Is there any way to achieve a view like this in ios?
There will be infinity scrolling in each row, how to achieve something like this? Is it using collectionview? and How can it be done? Any suggestion?
You need to use table view and in every cell of table view you need to use a collection view please look on this Link and this Link as well
OPTION 1:
You can use one uicollectionview for each sub-category that will scroll horizontally using UICollectionViewScrollDirectionHorizontal.
Here is a link that may be useful.
OPTION 2:
You can use one single uitableview for the whole page with header (section) saying the sub-category title and 'view all' button.
To scroll uitableview horizontally please check these links:
Link 1 and Link 2.
OPTION 3:
You can try GitHub example PTEHorizontalTableView. Use this tableview with header.

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.

Ios - is there a pattern or architecture for a screen with lots of text and paragraphs? [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
I have a screen that is supposed to have a few large sections of text, a few buttons on different places, and headings for every section which have different styles.
I can just cut and paste the text on the screen and make it a scroll view and be done with it, but I am wondering whether there is a pattern or a good practice way of creating such a screen that is perhaps more elegant than just dumping a bunch of text right on the page.
I am working with storyboards.
Thanks in advance for your advice.
I think using a storyboard and laying out the content is reasonable if there isn't too much there. (You can use a separate UIView and make it whatever height you want for layout purposes, then programmatically insert it into the scroll view.)
One alternative we often use for a "rich text"-like view is a UIWebView. (Though buttons in such a view are more of a pain.)

Resources