Hi i am a newbie in iOS app development. I have a requirement were in i should have a Picker View that should be displayed in an iPad App. I tried to increase the UIPickerView height but it did not happen after 216 pixel height. I was wondering is there a way to customize UITableView to make it look like a UIPickerView and mimic the whole pickerview functionality. But i got struck in making the tableview scroll like a pickerview.
Is there any way to make the UITableView scroll to function same like UIPickerView scroll.
Please help me out!!
I just found an other way round instead of customizing UITableView to UIPickerView,.. I used AFPickerView Framework. That helped me,.!!!
Related
Hi there, just like what the title says, I am in need of guidance/help on how to achieve similar UI design style as what's embedded above. I understand using UIKit could be harder as opposed to SwiftUI, but I am told to use UIKit as part of my study. Any help is much appreciated.
Edit:
We could start from the top, IE: maybe it's a custom collectionView? or static tableview?
Is the "variation" tab a collectionview inside a tableview cell?
How to achieve the "buy" and 'sell" section?
I always use UIStackView for multiple views like this, it's easy to setup, to configure and to update.
orange views are vertical UIStackView, play with spacing, distribution and other properties of UIStackView to get it fit.
Also if you think height of views get bigger of user screen, simply drop root stackView to UIScrollView, find out more how to have scrollable UIStackView
Masoud provided a great answer regarding the layout of the screen.
as for the question "How to achieve the "buy" and 'sell" section?",
You might be interested in the UITextField's .layer.cornerRadius property.
I have used bottom sheet behavior in my android project.What is the alternative of bottom sheet behavior in ios? Can you help me about this?
is there any material component in ios like this?
Hi there is so single component on iOS for the same.
Although, you can have two workarounds for the same
First you can make a UIView subclass call it CollapseView and design the view as you want your collapsed bottom view to look
Second you can make another UIView subclass call it ExpandedView
On tap of CollapseView hide it and show ExpandedView and vice versa
You can use animation methods for the hiding and showing
That will give the required collapsing and expanding effects.
I am trying to achieve a certain layout that looks like twitter and many other apps. Some people do it in UIVIewLayouts but I want to achieve it using this way (if possible ). As you see in the attached image. I have Header, and cells in the collectionview.
While scrolling up I want to minimize the imagview avatar inside the headerview. -> ( ViewForSupplementaryEelementHeader )
while scrolling down, I want to make the top UIImageview to be fixed to the top and stretchy
Thank you all in advance
*ps I am doing all of this in code nothing with storyboard and I dont want to use it at all.
Please advise me how to access these imageview while scrolling up and down.
I think this is the example you are looking for
https://github.com/sunlubo/StretchyHeaderView
This will add only tableview in storyboard...other all the work is done through coding
I'm working on a project where I need to use 3 storyboards, one for iPhone 5, the other for iPhone 6, and the last for iPhone 6+. I need to implement Swipeable UITableCells to show more options in this project.
I followed this tutorial: http://www.raywenderlich.com/62435/make-swipeable-table-view-cell-actions-without-going-nuts-scroll-views to semi-successfully get this done, but the problem is that this requires auto layout and manipulating constraints to make the table cells swipeable via a UIPanGestureRecognizer.
Is there any way to achieve the same user experience without using constraints? I'm kinda new to UIPanGestureRecognizer, so any advice on how to start on this would be wonderful, or if there are any tutorials out that that do the same things without using constraints.
UIPanGestureRecognizer is used to detect if user have clicked the screen.Check this link
You are using UITableView then you wont need UIPanGestureRecognizer . Try using
AutoLayout And become familyer with it .
Try to check following tutorial for tableview Create a Simple Table View App , Customize Table View Cells for UITableView , How To Handle Row Selection in UITableView
If you have got problem with auto-layout ask it I would try to help you out
I want to implement a table which is similar to the tv guide that you see in Yahoo app on iPad. The user needs to be able to scroll horizontally, vertically and even diagonally. The cells have to be resized dynamically based on the content.
Is this possible using UITableView or AQGridView? Or is there any other other approach to implement this kind of an interface?
You can achieve such behavior using a rotated UITableView inside a UITableView
have a look at this tutorial:
http://www.raywenderlich.com/4723/how-to-make-an-interface-with-horizontal-tables-like-the-pulse-news-app-part-2