How can I achieve the following animation?
https://ibb.co/mZgAGF
Consider the list of cells in UITableView/UICollectionView.When the user taps on an UITableViewCell/UICollectionViewCell, the detail page animates/opens from the selected cell and when we go back, the detail view goes inside the selected cell.
Please let me even if we've any existing libraries.
Thanks in advance.
Related
I want suggestions to achieve this. See below in attachment
What i did in "Details section" is i placed a tableview with one row in it to make it look like collapsable/expandable view.
Next section ("Buy Shares") is placed beneath it in view controller.
But when tableview row is collasped. The next view beneath it ("Buy Shares") is not going up with "Details view" section .
I want to move Buy shares view upwards too when details view is collasped.
No transition is applied to Buy shares view.
I am new in Swift IOS development. Any direction or any help would be appreciated. Thanks in advance.
I am kinda stuck in my iPhone app project (Swift, iOS, Xcode 7, using a StoryBoard), and I am hoping someone would be kind enough to give me a helping hand.
I am trying to link two Tableviews in such a way that when the user (me!) taps any row (each row = day of the week) in the 1st TableView it takes him to a more detailed row in the 2nd TableView; in a row, the user would enter info for 4 items, and in that 2nd TableView, the user would be able to add as many similar rows as he wishes to again enter different info for the 4 items such Time, Event, Place etc.
When I tried to create that 2nd TableView (dragged ViewController into StoryBoard, inserted TableView object, added 1 dynamic cell), I simply was unable to link it with the 1st TableView...
VoilĂ ... Any help will be hugely appreciated as I am new to that environment. Thanks in anticipation.
Cheers,
Laroms
It seems like you just need to link a NavigationController from one TableView to the second TableView. Make sure you right-click and drag the action to the appropriate methods.
I'm working on a sample iOS app and want to load (in a tableViewController) certain data based on the button the user presses at the top of the view. For example, when the user loads the page it will by default load data from "myPosts" but on the top of the view there will be two buttons "My Posts", "Not My Posts". If they then select the "Not My Posts" button then the tableview cells will be reloaded with the data from "notMyPosts". Anybody know how to do this?
So, the best solution here is to use a Segmented Control. Basically, you will have a controller for each TableView and a controller for the SegmentedControl.
This tutorial and this question gives a basic idea on the segmentedControl and how to set the basic controller for it. You will basically have a Container View with a view for each tableView you want to display and show/hide it based on the selected segment on the SegmentedControl.
This is how your storyboard will look like:
Just use two different datasources for your table, depending on which button the user selects.
So, when the user taps on a button set a variable to keep track of which button they tapped, and then reload your tableview.
I made a single view application. It's kind of an alarm app. And like the alarm app in the iPhone(which is basically provided in the iOS) if I tap the plus button, I want the application to make a cell in the table view, and when I tap the cell, I want the single view(which I have already made) to appear. How can I do this?
Some steps to move forward:
To add 1 cell when you tap + button:
https://developer.apple.com/library/ios/samplecode/TableMultiSelect/Introduction/Intro.html#//apple_ref/doc/uid/DTS40011189
To tap the cell -> separate view:
https://developer.apple.com/library/ios/samplecode/NavBar/Introduction/Intro.html#//apple_ref/doc/uid/DTS40007418
try to download and investigate the sample code from apple. hope it helps.
The Problem
I am trying to replicate the drop-down style menu in the latest Facebook app.
At the top of the News Feed there is a "Most Recent" row:
Tapping this row expands the view, pushing the News Feed (UITableView) down:
Tapping the down indicator will expand the menu fully.
The Question
How is this menu implemented?
Given the behavior, I assume it is a custom view placed inside the tableHeaderView. But what custom view? A button, another tableview? What about the animation?
You wouldn't be able to do this as a table header. It'd need to be a section of the table that is initially 1 row and becomes multiple rows when you tap on it. Then all you would need to do to get an animation is to reload that section where animated=YES.