Sunday, 21 June 2015

june 20

q
What are the inits for UIPickerView

issue
email class was not working with an "unrecognized selector" message or something like that.
solution
check the import statements:
need to use import MessageUI

note
There are several things that need to be done in order to present a view controller programmatically. See apple docs. But the main step is

func presentViewController(_ viewControllerToPresent: UIViewController,
                  animated flag: Bool,
                completion completion: (() -> Void)?)

note
for some reason tried to use the following to convert a string to an NSData
NSData* dataFromString = [NSKeyedArchiver archivedDataWithRootObject: aString]

note

sending files by email sometimes does not occur < a minute as it should. Often it is much faster but the worst case time is a problem. Opening the mail app seems to force an update. 

No comments:

Post a Comment