Customisation in FScalendar view? - ios

Is it possible to do this kind of customization in FSCalender View as below image?
FSCalender provides us round circle layout on the selection of date which is in left.
but
I need the layout like right end side when selecting a date it also selects the day of that date with square border.

In the documentation you can find how to make the shape a rectangle:
https://github.com/WenchaoD/FSCalendar/blob/master/MOREUSAGE.md#the-day-shape-doesnt-have-to-be-a-circle
There are more properties to change apprearance declared here:
https://github.com/WenchaoD/FSCalendar/blob/master/FSCalendar/FSCalendarAppearance.h
Especially borderSelectionColor might be what you are looking for.

yes you can add custom image in FSCalendar

Related

How to Create a UITextField to accommodate value in this following manner?

I am developing an ios application that has two input fields that for entering date. I am planning to add a UIDatePicker in the following manner
[_datePicker setFrame:CGRectMake([UIScreen mainScreen].bounds.size.width-_datePicker.bounds.size.width, [UIScreen mainScreen].bounds.size.height-_datePicker.bounds.size.height, _datePicker.frame.size.width, _datePicker.frame.size.height)];
_inputText.inputView=_datePicker;
But the bigger problem is, I need it to look something like the image I have posted
How can I accomplish this?
Okay... there should be a couple ways to solve this.
1)
Put a transparent (or clear colored) UIButton over the view with the date labels. You may need to make the view containing the labels change color/alpha something to indicate the button has been touched before bringing up the date picker.
2)
If the above doesn't work, try adding the view with the labels as a subview into UIButton.

Swift - ios - creating ballon buttons

I want to create a set of buttons that will look like this:
(The selected buttons are those with a different background)
Any ideas for a simple implementation?
Are there any known open source implementations for this?
Thanks!
Following is the library which may be use to solve your problem,
For different appearance you need to give the conditional code for that but with out that your problem may solve with this library or code.
You can download the sample code of RRTagController project here.
For rounded corners use UIButton.layer.cornerRadius. if you set corner radius to half of the box you will get circle. For the border color use layer.borderColor = UIColor.redColor().CGColor.
For the background color of the button you can keep track with selected state of the button. Here is an example of using selected state: UIButton state selected
Next thing you could do is to keep data about selected ones, since the best way to do something like this would be UITableView - seems like every row of buttons have same height, and if you want to send that somewhere you can keep track about what items are selected.
I think the best way is to use UICollectionView.

ios draw shape under button

i want to achieve this functionality..!
On navigation change the bottom arrow should animate to left or right button selected.
i know only one way i can achieve this functionality by changing the complete background with bottom home selected to videos selected ..
so that i will have four complete background images with homeselected ,videos selected,etc
is their any better way to achieve this..
There are lots of custom views at Cocoa Controls
Here is search result
Here is some related
SDSegmentedControl
One more
RS3DSegmentedControl
Use them according to your need.

UIDatePicker show only picker like Sleep Cycle

I would like to add a UIDatePickerModeTime picker, but the grey area around it seems so ugly to me. I am just wondering what's the best way of removing it? Is there some property I can set or any frame reset?
!
Well, I know one of the way to do it would be
Place the picker below a "background" image, which hides everything but the picker itself
Well, in that case you can create your own custom date picker with UIPickerView.
This link might help you.

Superscript "Registered mark" in UIPickerView

I need to show a registered trademark symbol in a superscript (exponent position) in respect to the name of the label. need to show it in a uipickerView and a label. I havent found the option of how to show the unicode \u00AE in the exponent position,
1) Should I use 2 labels in different positions in the uipickerView?
2) Or, Show an image in the picker view with the intended name?
Thanks a lot!
For me this works:
#"Sometext \u00AE other text".
Can you check?
The unicode symbol is very slightly superscripted but I guess this isn't enough for you. You can't mix font sizes and styles within a label so there isn't an easy answer. Two labels probably won't work because you will be having to adjust the position of the R sign.
The simplest answer is probably to subclass UILabel and, in the drawRect method, call the super implementation and then manually draw the R string where you want it. You can get the size of the existing text using the NSString drawing methods so you'll know where to put the symbol.
I ended up using an image in the picker view to show the superscript as needed,
inspired by the catalog app from apple,
if you are a noob like me and would like to check the project, please go to
project in Github

Resources