And just like that, YouTube star Casey Neistat's brief stint in mobile apps is over… for now, anyway. As promised, the social video service Beme is shutting down on January 31st following CNN's acquisition of the app in the fall. You can download a…
Category: I-phone
Iphone ,Apple I-Phone Tutorials,Jailbraik,3g,3gs,2g, 3gs untethered ,3.1.2,3.1.3,geohot
Return to Vvardenfell in ‘The Elder Scrolls Online: Morrowind’
Have you ever been caught up in an Elder Scrolls Online adventure only to look around, yearning for more scrolls of an elderly variety? Well, it looks like your prayers have just been answered as Bethesda just announced that Morrowind is coming to El…
‘Witcher’ developer forum hack exposed 1.8 million gamers
If you're a big enough The Witcher fan to have joined CD Projekt Red's official forums, you may be in for an unpleasant surprise. Members signed up to Have I Been Pwned have received emails warning them of a reported hack in March 2016 that compromi…
Walter brings foreign prestige TV dramas to the US
The internet has democratized almost everything to the point where almost anyone can now start their own streaming service. Channel 4, a British public service broadcaster, is joining the fray by launching its own internet TV platform in the US. Walt…
Nintendo kills the Wii U, at least in Japan
Nintendo has quietly updated its Japanese website to say that production of the Wii U, at least domestically, has ended. As spotted by Kotaku, the listings for the console now include the phrase "Production End (Within Japan.)" We've known since last…
Comcast’s Xfinity TV app for Roku starts beta testing
It's been nearly a year since Comcast announced work on its "Xfinity TV partner app" for Roku and Samsung, and now the Roku version is ready for testing. The Xfinity TV beta app is now available in the channel store, with access to "live and on deman…
Shell to start installing EV chargers in UK petrol stations
The UK's EV charging infrastructure continues to grow thanks to a few dedicated players, but the likes of Tesla and nemesis Ecotricity will be joined by an unlikely newcomer later this year. Petrol pusher Shell has confirmed plans to add EV charging…
NoticeObserveKit – A Swift Library That Simplifies Working With NSNotificationCenter
NoticeObserveKit is an open source Swift library submitted by Taiki Suzuki that provides a simpler syntax for working with NotificationCenter.
NoticeObserveKit provides a protocol which must be adhered to and then you can easily work with your observers.
This example of the readme demonstrations the creation of an observer pool with a couple of observers using NoticeObserveKit:
import NoticeObserveKit
class ViewController: UIViewController {
private let searchBar = UISearchBar(frame: .zero)
private var pool = NoticeObserverPool()
<pre><code>override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
navigationItem.titleView = searchBar
configureObservers()
}
private func configureObservers() {
UIKeyboardWillShow.observe { [unowned self] in
print("UIKeyboard will show = \($0)")
}.addObserverTo(pool)
UIKeyboardWillHide.observe { [unowned self] in
print("UIKeyboard will hide = \($0)")
}.addObserverTo(pool)
}
</code></pre>
}
You can find NoticeObserveKit on Github here.
A nice library for working with NotificationCenter in Swift.
Original article: NoticeObserveKit – A Swift Library That Simplifies Working With NSNotificationCenter
©2017 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.
Cassini captures close-up views of Saturn’s rings
NASA has released high-resolution close-up images of Saturn's outermost rings captured by Cassini as part of its penultimate mission. The spacecraft has been diving in and out of the rings every week since November, taking images that show features a…
Study offers best evidence yet that we’re in a holographic universe
Don't freak out, but there's a good chance that the entire universe is actually a holographic projection. The theory isn't new — we've been talking about it since the 90's — but a new study from researchers in Canada, Italy and the United Kingdom h…
Twitter admits ‘didn’t move fast enough’ on abuse, changes coming
After years of hearing users cry out about the abuse on its platform and reacting in ways that may have made its problems even worse, Twitter says it's listening. VP of engineering Ed Ho tweeted tonight that "We heard you, we didn't move fast enough…
MacBook Pro Touch Bar banned from multiple state bar exams
Here's an unexpected drawback of Apple's latest flagship laptops: law students in several states are being asked to disable the Touch Bar on their new MacBook Pros, or leave them at home entirely, if they plan to use the machines when they take the b…
What’s on TV: Super Bowl LI, ‘Powerless,’ ’24: Legacy’
This weekend is obviously focused on the Big Game, but there's more on deck. Netflix is streaming a new series, Santa Clarita Diet, starring Timothy Olyphant and Drew Barrymore, while Amazon has the final episode in this season of The Grand Tour. Als…
Workplace AI makes it all too easy to track you on the job
Artificial intelligence can help you work and even help you find work, but it's now being used to monitor you at work… and that's not entirely a good thing. New Scientist notes that a London firm, StatusToday, recently joined a security accelerato…
Googlers stage a walkout to protest Trump’s immigration ban
Numerous technology companies have already voiced their opposition to the Trump administration's executive order from Friday banning the immigrants and refugees from seven predominantly Muslim nations. Today, Google employees from eight campuses have…