I am using fscalendar library to show some activity saved in the calendar and I am done with showing activity on the calendar, but I don't want any circle on the current date and I also want to disable user interaction. Is there any way to do so. Anybody has some idea please help me out.
I think you just need to set today and allowsSelection, since selection, as far as I know, is the only other interaction you can have with the calendar other than scrolling.
calendar.today = nil // makes today appear just like any other date
calendar.allowsSelection = false
Related
I have a Today Extension and I have a textfield and button and what I want to do is if textfield.hasText == true do something and if textfield.hasText == false then i want to show an alert within the widget
First of all, Keyboard Entry is not allowed in iOS Extensions, so have a UITextField in Today Widget doesn't make any sense.
Because user interaction with Today widgets is quick and limited, you
should design a simple, streamlined UI that highlights the information
users are interested in. In general, it’s a good idea to limit the
number of interactive items in a widget. In particular, note that iOS
widgets don’t support keyboard entry.
I want to create select box just like creating events in calendar when choosing start time and end time. Any suggestion?
Because I can't find any resources about this.
Please help.
Normally, we handle this using UIDatePicker or custom of UIPickerView. But, it's still able to create something like a select box using UITableView. Some people do want it look like a select box instead of using the native iOS widget. However, we always suggest to use the iOS widget so that user will not get confused because they have adapted to the iOS world.
Using UIPickerView solved the problem.
I am looking to implement a calendar with month view & to be able to add appointments to day, as in attached image. Suggest me with some example to approach this, Thank you in advance!
I have made a resume maker app in iOS. It only has two fields for the work experiences. However, a user can have more than one experience and the number is uncertain. So, my app is restricting a user to enter the information for only two work experiences. Now my boss wants me to add a button and when I tap it one more field should be displayed for the experience. So, this will allow a user to add as much experiences as he wants. I have searched a lot about it but couldn't find anything helpful. If you can kindly lead me to any resource or just give a demo.
One approach you can do is to have a UITableView and have each single experience populated in each cell. Then when an add button is pressed, a view like UIPopover can appear and let the user fill out the info. After the form is filled, one extra cell would be generated to display the new experience. This approach works with deleting as well.
What most people mean by autocomplete is that the app has a textview/searchbar/whatever which accepts user input. Attached to this component is a tableview which keeps updating based on the user input. This is a well researched topic and is now relatively easy to implement thanks to the UISearchDisplay controller.
Now here is what I want. When the user is typing in some text in the UISearchBar, there will be no searchdisplaycontroller. Instead, I want the app to do something like Google Instant on desktops. That is, if I type "Goog", the searchbar should show Goog*le. So the suggestion "le" should be in a lighter font than the rest of the user input string Google. So I don't want an auto-suggest feature, I want an autocomplete feature.
Any ideas on how I can do this?
Thanks!
Alternatively, you can use this UITextField subclass (inspired by DOAutocompleteTextField):
https://github.com/hoteltonight/HTAutocompleteTextField
It's got a few more features and is actively developed. The example shows you how to use an array as the data source for the autosuggest text.
I haven't tried it but here's a control that appears to do what you're asking for:
http://cocoacontrols.com/platforms/ios/controls/doautocompletetextfield