I am a new with xamarin.ios, i have added a view controller on the storyboard, then added a scroll view and added also a view and put on this view some labels, but i can't scroll, what's the problem?
Related
I have been working on a app that allows user to fill details on a form but while making the form in design view one problem has slowed me down so much.
i am using a scroll view so every new item gets added at the bottom so its always off screen.
i scrolls down to see how it looks but after i do anything the scroll view auto scrolls to the top so i have to scroll down again and again.
is there a way to stop auto scrolling to top when code get updated in the editor.
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.
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.
I'm trying to modify an app to work with the new iPhone 5, 4" screen.
I've added the new launch image, "Default-568h#2x.png".
After that everything seemed good. Middle portion of my views is resizing ok.
However I've noticed that in a view where I have a bottom toolbar, the buttons on the toolbar are unresponsive. It looks ok, but tapping buttons does nothing. Same code run in simulator with 3.5" screen works fine.
Any ideas?
This view is within a navigation controller. It consists of a table view and toolbar. The tableview is set to resize height.
I had the same problem and noticed that my window.frame.size.height was still 480.0.
Solved this problem by enabling Full Screen at Launch for the MainWindow.xib file:
Steps:
Open MainWindow.xib
Select the Window element
Open the Attributes Inspector
Under Window section, enable Full Screen at Launch
There are two solution to this problem :
If you are using MainWindow follow these steps :
a. Select MainWindow.xib
b. Select 'Full Screen at Launch' from Windows option available in Attributes Inspector.
If your application doesn't contain MainWindow then just add 'Self.View.Frame = [UIScreen mainScreen].bounds' in ViewDidLoad.
I your project has MainWindow.xib then you must have to set all splash images in order to compatible you app for iPhone 5 display.
My Project wasn't using MainWindow.xib. I added the following to viewDidLoad in View Controllers of all the screens:
self.view.frame = [UIScreen mainScreen].bounds;
add
self.window.frame = [UIScreen mainScreen].bounds;
in this method:
-(BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary*)options
in your %your app name%AppDelegate.m file
I have DialogViewController I select some data from web service, and add root, and my root view height is always increase (like load more tweets) and I want to fix toolbar. However I didn't do it. when I add toolbar, it added end of root view, but I want that it should be fix on screen. Please help, how can I do that?
You should have the toolbar in your parent view controller. Look at the UITabBarController for an example.