Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Tom Coomer
1,331 PointsAccessing Pasteboard in Today Widget
I am building an app with Xcode 7 beta and Swift 2. I am using the code below in a UIButton to paste into a UITextView. Before the latest beta update the code was working, however, after the update it does not. When I attempt to paste it pastes the value as empty and when I print this out in Xcode it says nil. This code does work on another button and textview in the main app. Is this something to do with the latest update to Swift 2 and iOS 9 Beta?
UIPasteboard.generalPasteboard().string
Thanks
Jhoan Arango
14,575 PointsI've never worked with UIPasteboard, I wish I could answer your question. But I am sure it has to do with the update, since swift 2.0 has a lot of updates. I apologize for not being able to help much.
Caleb Kleveter
Treehouse Moderator 37,862 PointsCaleb Kleveter
Treehouse Moderator 37,862 PointsSorry Tom, I'm not on the developers program, and I have no experience with UIPasteborard.