Documentation for MapLib/AttributesView.swift¶
- protocol AttachmentDelegate : class¶
Attachments delegate class
- func onAttachment(attachment: Attachment?)¶
Executes when attachment clicked/touched.
- Parameters
attachment – Attachment clicked/touched.
- func onAddAttachment()¶
Executes when attachment add.
- class AttributesView : UIScrollView¶
Attributes view. Shows feature attributes.
- var isSectionUppercased = true¶
Section labels uppercased or not. Default is true.
- var attachmentRemoteImage : UIImage = nil¶
Attachment icon image if file is not exists in file system.
- var attachmentDelegate : AttachmentDelegate? = nil¶
Attachments operation delegate.
- func fill(feature: Feature)¶
Fill controls with values from feature.
- Parameters
feature – Feature class instance.
- func addAttachment(_ attachment:Attachment)¶
Add attachment to this view.
- Parameters
attachment – Attachment class instance.
- class AttributesEditView : AttributesView, UITextFieldDelegate¶
Attributes view with edit capabilities.
- func addFieldEdit(_ feature:Feature, _ field:Field, _ pos:Int32)¶
Add field edit control.
- Parameters
feature – Feature clas instance.
field – Field class instance.
pos – Field position in fields atrray.
- func addAttachmentEdit(_ attachment:Attachment)¶
Add attachment with delete button.
- Parameters
attachment – Attachment class instance.
- func addAttachmentBtn()¶
Add “add attachment” button to view.
- func textFieldShouldBeginEditing(_ textField:UITextField) Bool ¶
Executes while text field begin editint. Used by calendar control.
- Parameters
textField – Text field class instance.
- Returns
true if editing available or false to prevent editing.