i want to hide title in the main screen and when objective choice field is selected i want to display title bar.Can any one please tell me how can i do it.
try setTitle(null) to hide your title and when objective choice field is selected set it to your value.
Related
I am implementing FSCalender and i want to hide month placeholder but not get that class name or code.Can anyone help me.
You can't hide month placeholder but If you can set white color of Header Title then it will be not visible.
Default Color Blue
Change color of Header title
Update
You can use HidePlaceholderViewController class the place holder will remove.
For reference download latest source code and check Hide Placeholder class.
Add this line
calendarView.appearance.headerMinimumDissolvedAlpha = 0
First let me explain something, so you guys can understand better my problem:
I'm using Toolbar and i have a Fragment called Location Fragment where i have 6 floationg action button vertically .
When you click on one of the floating action button some action like geofence,live tracking,current location etc are performed on the same map fragment.
So my problem is that when i click any of the floation action button ,like when i click geo-fencing floation action button the title on the tool bar should change with the geofence title..In this way for all the Floating action button the title of toolbar should change. in my case the title of the tool bar is not changing .
I have tried to use setTitle or this.Activity.Title="Geo-fence" on the click method of Floating action button,but still it remains same title .
Change ToolBar Title dynamically on click events in Fragment
In your Fragment, add the following code in your click events :
((AppCompatActivity)Activity).SupportActionBar.SetTitle(Resource.String.YourTitle);
this.SupportActionBar.Title = "Your Title";
I want to show more button at the end of the text or below if there isn't enough space. I don't understand how Apple developers did this?
Please answer in swift. After clicking on more button i want to show all the text. change the button to less.
Thanks in advance.
Here's a great CocoaPod for the functionality you're looking for.
https://github.com/ilyapuchka/ReadMoreTextView
This will allow you to set a maximum number of lines and customise the text append to the end of the trimmed text. You can change the font and color since it is an NSAttributedString.
If you add more than 4-5 view controllers to a TabBar Controller, either in storyboard or programmatically(adding array of controllers to a tabar controller), it automatically show a more item as a tabar item in TabBar.
I am trying to replace the bar button items in my toolbar with images. I was able to select image in the attribute inspector. But now the text is replaced with image. Is there anyway i can keep both text and image (text should be below image)
What i have is this.
Please click to see image
What i am looking for is something like this
Please click to see image
Thanks for helping.
You can place the image in the selected image attribute
And you can place the text in the bar item title attribute
Something like this
This can be done when you do to the navigation controller for that particular tab.. Like in your case navigation controller for item 1
Hope that helps
I am using the default UIKeyBoardType, and it contains a button with a Search title. Is there any way to change that title from Search to Dismiss for example?
If you are using IB you can select the UITextField that you want to change the keyboard for. Then under the Attribute Inspector there is an option "Return Key" You can change the title here.