I have a tableview with custom cells that collapse and display details on a tap. There are more cells than can be displayed at a time on the screen. I want to create a custom UIGraphicsBeginImageContextWithOptions that has the header of the screen (an image with the logo of my app) and all the cells in the tableview displaying the details underneath and then share it using the share button.
I tried finding examples but was unable to find anything that helps. How can I achieve this result?
Here is an example of what I am looking for:
Related
I just want to know what exactly should I use in storyboard UI so that I can create multiple views which can replace one view with the after a click of button:-
Replacing first view with second in this way
And not this way
You can use a CollectionView as the Header of a TableView if you want a UI shown in first image.
TableView will be having Chat options and the Collection View will be having images as you have in the given picture.
Quick Overview :- TableView only supports Vertical scrolling which is best in your use case.
Collection can support both vertical as well as horizontal scrolling. So basically what you can do is have a collection view of height as much as you want as a header of your tableview. So when the user scrolls through your tableview your scrollview will also move up just like we have in facebook and instagram stories.
Even if you have more images in collection view then your predefine height set the scroll mode as you prefer horizontal or Vertical so that user can have a look at everything you have in there.
Edit :- After editing your question this can be done for what you're looking :-
You need a Navigation Controller. Here's the Navigation Controller Push and Present of the answer which shows in detail how you can achieve that.
By doing Push you can achieve what you want (first image) and by doing present you'll achieve the second image result.
so I have created a UICollectionViewController, made each cell the size of the screen and enabled the function to scroll horizontally between the cells like pages.
My problem is whenever the keyboard comes up (as I plan to populate the cells with some input to get from the user) it pushes the content off the screen.
I am not sure how to stop this, and I have looked online but to no avail. The best I could find is this question also on stackoverflow but it doesn't help.
I am making an app like Photo Library in iphone
But I do not know what view is used to show images: UITableView or UIPickerView or UICollectionView.
With Table View: it scroll too fast - How to "stop at next cell when I slide it?"
With Picker View: the images are blurred at top and bottom, how to remove its?
Or Collection View?
You can use UICollectionView for it.
Check this link for more details
https://www.raywenderlich.com/136159/uicollectionview-tutorial-getting-started
I am searching for a Listview in Swift that looks like the following:
Wanted ListView:-
I want a ListVIew that has a picture in the background and a text over the picture. And when I click at that picture, I want to go to the next site.
And how I get these Header?
Header Example:-
Can someone help me?
Implement the UITableView with customTableCell.
On your customTableCell class draw the custom design as shown in your requirement image. (Set a background image. Set a left aligned label.)
Implement the didSelectRowAtIndexPath delegate method to goto the next site.
Set the accessoryType of cell to UITableViewCellAccessoryType.DisclosureIndicator
Custom header:- Set the translucent navigation bar. Set the custom image in your headerview.
You need to implement UITableView to achieve your requirements mentioned in question. You can use custom cell and can add UIImageview and UILabel on it to show image and title. Second thing you can implement tableHeaderView which can fullfill your need of header. Tableview is memory efficient with great performance. So, in your case UITableView is the right choice.
I am using Xcode 7.1 and Swift 2.1 version.
I am looking for something as shown in the picture
Here in the left screen (Before Swiping), I have a UITableView in which there are certain cells in which I have to implement a right swipe functionality.Now when I swipe right the one coming from right must be a UICollectionView as shown in right picture (After Swipe) as there can be many options (a,b,c,d,e....). So they should be in some scroll view like UICollectionView.I searched a lot and found some libraries like
https://github.com/MortimerGoro/MGSwipeTableCell
https://github.com/CEWendel/SWTableViewCell
They provide array of UIButton or a single Button with image or text. We can add multiple buttons but they will shrink accordingly.
I want something called a UIView in which I can place UICollectionView and make its datasource accordingly with fixed size cells as shown in the picture.Any source or link for the same is highly appreciable.
Thanks