Announcement
class Announcement
The Announcement
object, allowing the saving process to be easier.
-
Whether or not the announcement is going to be displayed.
Declaration
Swift
var display: Bool
-
The title for the announcement
Declaration
Swift
var titleString: String?
-
The first line of the announcement
Declaration
Swift
var firstLine: String?
-
The second line of the announcement
Declaration
Swift
var secondLine: String?
-
The initiation of an
Announcement
object.Declaration
Swift
init(display: Bool, titleString: String?, firstLine: String?, secondLine: String?)
Parameters
display
A
Bool
that determines whether the announcement is going to be displayed.titleString
The title for the announcement.
firstLine
The first line of the announcement.
secondLine
The second line of the announcement.
-
Undocumented
Declaration
Swift
func upload(sender: UIViewController)
-
The update method, designed to be its own function so that it can be used outside of the
upload(sender:)
‘s scope.Warning
Using this method without the knowledge of whether a record already exists will result in inconsistency and errors.Declaration
Swift
func update(sender: UIViewController)
Parameters
sender
A
UIViewController
that is recieving and presenting the success message.