Remove paddingTop in UICollectionView Xamarin.iOS - xamarin.ios

I am developing an iOS app using Xamarin.iOS . I have used UICollectionView to display a list of categories. I have used StoryBoard to design the interface. I have one problem:
CollectionView has a padding from the top. As far as I got it has to do with insets. I have used UIEdgeInsets but no success. Is there any option how to remove that space/padding from the top. The collectionView is used with other layouts so I need to remove it.

Related

UIScrollView Xamarin Ios

How to use both vertical and horizontal ScrollView in Xamarin iOS ?
I am using CollectionView but with it I only get one scrollview working at a time.
It's because it's nature of collection view, you can make it scroll in one direction at a time i.e. either horizontal or vertical. What you exactly want to achieve that you have not mentioned. if you are going to use collection view inside the scroll view, you have to manage it properly.
The best solution would be use a UICollectionView for the horizontal
scroll and the UITableView for the vertical scroll.
But if you want to make it work only using UICollectionView you have to use Subclassing UICollectionViewLayout.
here is link you can refer to make it work, hope this might help you:
1.https://www.brightec.co.uk/ideas/uicollectionview-using-horizontal-and-vertical-scrolling-sticky-rows-and-columns
2.Subclassing UICollectionView
3.UICollectionView scrolling in both directions

Using Xcode Version 6.4 (6E7)

I'm trying to learn how to create apps by following the Standford swift class where the professor uses the constraint icons to position the UI objects on the views. In the course, the storyboard page shows the constraint icons at the bottom of the storyboard page.
I just download and started using Xcode Version 6.4 (6E7) and while creating the UI in a viewController I noticed the constraint buttons at the end of page are missing or not available. is there a way to get access to them thru the Xcode menus.
Where are they now?
The constraints buttons usually do not show up if you don't have auto layout enabled for the storyboard or XIB. The easiest way to check is to open the storyboard in Interface Builder, switch to the File Inspector (ALT+Command+1) and then check the Interface Builder Document section. There should be a checkbox for "Use Auto Layout". Is it checked?

Montouch tablview as subview issue

I am new to Xamarin IOS and I have a problem with creating nested layouts in IOS as like in Android(some text controls and a list view) . I added a tableview but not sure how to add some text and image controls in a view and add the tableview below the text and image controls. Also I am using ViewPager in Android and is there an equivalent control that I can use in IOS?
Yes, you should use UIScrollView and enable paggin there. The only issue that you need always to set the ContentSize for it, to make it scroll properly. So you should set the common Size of inner content.
You should check out monotouch.dialog for rapid tableview development. Once you get the hang of it, it makes creating tables a lot easier.

Show/Hide UIImageview with collapse/expand space xamarin.ios mvvmcross

I am developing an iOS native app using xamarin. My app contains an UIImageView and a "Remove" button associated with that image for preview purpose. These both ImageView and Remove button is initially hidden. I have another button for selecting picture. so once, user select a photo, it will be display in ImageView and Remove button also appear dynamically. I achieve this through MvvmCross command binding.
The Problem is, when the PreviewImage and button are hidden, then also the screen occupies the blank space. I want it to be collapse, as there is nothing at that time.
So can anyone knows how to handle such situation? I am newby in iOS and xamarin.

Can not put UiSearchBar on top of UiTextView

I've tried to put UiSearchBar on top of UiTextView. They are on UiVeiwController however when I put uiSearch, it remove UiTextView and show grey-line background. I tried to mixed things up via code. Unfortunately, it did not work.
Tool I use are MonoTouch and Interface Builder.
I'm looking forward to hearing from you.

Resources