Have you wanted to send an e-mail from your app and pre-populate the fields like the recipient, subject, or body text? Apple made it pretty easy with MFMailComposeViewController. There is a bit of setup, but most of its actual implementation is pretty easy.
Archives for June 2014
Replace Keyboard with UIDatePicker
I thought I might write a smaller post today. This is something I needed to do in one of my apps, and thought I would share a bit of how it is done. The actual action to take here is pretty easy and short, but I will discuss a few other things I learned while doing it. [Read more…]
Getting started with NSNotificationCenter
Have you ever wanted to alert other classes of your app of some event from another one?
Sure, you could have your class poll the other one and keep asking if something has changed, but that seems to be wasteful, since in many cases, there usually won’t be. You could even not bother with polling, and just read it back in all the time, but if there has been no change, that again is wasteful of processing time, power, etc. To avoid these issues, I have found that NSNotification Center is a great answer to this problem. You can just have your class subscribe to the Notification, and then when it alerts your class that there has actually been an event you’ve been waiting for, you THEN can call that class and read in what is necessary, or react appropriately.
WWDC 2014 Reactions and the Swift direction of this Blog
So, to be perfectly honest, I was not expecting anything groundbreaking at this years WWDC. I thought there would be iOS 8, which would have a few new features, but not TOO much. I mean, after iOS 7, there should definitely be some cool-down time before anymore big changes to the OS. I also thought they would probably talk about OSX 10.10, and there would be a few new features too. Not that I was expecting Apple to be lazy this year, but you can’t make something groundbreaking and amazing every single year.