Hussein

71 Flips | 3 Magazines | 261 Likes | 5 Following | 15 Followers | @husseinb92 | Keep up with Hussein on Flipboard, a place to see the stories, photos, and updates that matter to you. Flipboard creates a personalized magazine full of everything, from world news to life’s great moments. Download Flipboard for free and search for “Hussein”

Kill your viewDidLoad configuration in Swift

Back in Objective-C, we prepared all of our view controller properties in viewDidLoad because that was our only option unless we wanted to subclass …

Objective-C

Libraries Used in the Top 100 iOS Apps

I am eternally curious. A big motivation for writing the FLEX debugging tool was to explore other apps and discover how they tackle common problems. …

Fundamentals of Callbacks for Swift Developers

Callbacks: What are they? How do they work? What are they used for in practice?My goal in this article is to provide answers to these questions so …

iOS Programming

Alone this Valentines Day? Fall in love with Swift using this Playground!

Are you planning on spending tonight alone, coding Swift into the wee hours of the morning? If you are, but still feel festive, there’s a Playground file on GitHub you may want to check out.<p>It’s a simple red heart on a black background, but also a neat way to toy with Xcode’s Playground feature …

Valentine's Day

How to cache view controllers in iOS

If you have an iOS app with multiple child view controllers, it can be annoying when their layout state is lost when switching between them. Scroll …

Apple's CloudKit update makes it a fantastic Parse replacement for developers

Apple has updates its CloudKit service with server-to-server capabilities, making it easier to use outside of Apple’s locked-down environment.<p>From Apple:<p>In addition to providing a web interface for users to access the same data as your app, you can now easily read and write to the CloudKit public …

Apps

How to Make Text in a UIVisualEffectView Readable on Any Background

Whatever your personal feelings about blurred backgrounds (I happen to like them a lot, in general), there’s no denying it fits the current Apple …

Britpop

Swift: UIStoryboard Protocol

Because String literals are so yucky.<p>A couple weeks ago I came across a great post on by Guille Gonzalez for which he had devised a way to make …

Adapting Images for Size Classes

I was lazy with my last post on how to use auto layout for proportional spacing. I started with three images in a horizontal row that were 120x120 …

IPad Air

9 Swift Resources for iOS 8 Developers

If you're interested in Apple's new programming language announced at WWDC, there are a variety of resources available online now. Here are nine …

Swift 101 - Swift Meets the Cocoa Touch Framework

Even though Apple has provided the new Swift programming language for building iOS apps, one thing remains the same—we still use the Cocoa Touch Framework libraries to build iOS functionality into our apps. However, since the Cocoa Touch Framework is written in Objective-C, how is this …

Objective-C

Devs dish on what’s hot about iOS 8, OS X Yosemite and Swift

[avocado-gallery ids=”282985,282468,282476,282475,282474,282470,282472,282469,282477,282473,282471,282467″]<p>What’s your take on iOS 8, Swift and OS X Yosemite?<p>Got your own favorite features in Apple’s latest releases? Let us know in the comments below.<p><i>Photos: Jim Merithew/Cult of Mac</i>

Apple

Following the release of its initial introduction manual for the new programming language, Apple has released a second FREE book on the iBookstore that is dedicated to giving those interested in learning more about how to code using Swift, with the basics that they’ll need when it comes to creating a Swift-based Xcode project. The […]

Following the release of its initial <i>introduction manual</i> for the new programming language, Apple has released <i>a second FREE book</i> on the <b>iBookstore</b> that …

New Yorkers can learn Apple’s new programming language for free

Are you based in New York City and looking to learn Apple’s new programming language Swift for free?<p>If so, you may be interested in participating in a tech workshop organized by software development firm TurntoTech in their offices on 5th Avenue. Close to 900 people have already RSVP’d for the …

Apple

Swift 101 - Classes, Variables, Properties & Methods

As promised, here is my first installment on learning to program in the new Swift language!<p>Defining Classes in Swift<p>The following code shows an example of a Swift class definition:<p>To declare a class in Swift, you use the <b>class</b> keyword followed by the name of the class. If it has a superclass, you …

Objective-C

Why Apple's iWatch Will Sell Better In An iPhone 6 World

We will not, indeed, see the first peek at the iWatch at Apple Worldwide Developers Conference (WWDC) at the beginning of June, according to a report from John Paczkowski at re/code yesterday. “Sources familiar with Apple’s plans tell Code/red that Tim Cook will not use WWDC to unveil Apple’s …

Wild Rumor of Apple EarPods with Biometric Sensors Has Roots in Apple's Research

A seemingly wild rumor of Apple planning to launch new EarPods headphones with integrated heart rate and blood pressure sensors has been making the rounds today after the claim was posted on anonymous information sharing platform Secret (via Reddit).<p>Apple's new EarPods will have sensors in them, …

Apple adds TV shows to Apple TV, iTunes in the Cloud support for TV shows & movies in Germany

Apple has started rolling out TV shows in addition to iTunes in the Cloud support for TV shows and movies to Apple TV and iTunes users in Germany. A report from Germany blog iFun.de notes the iTunes in the Cloud functionality, allowing users to access TV shows and movies that were previously …

Virgin Atlantic Will Use Apple's iBeacon Tech to Help Passengers

Virgin Atlantic has announced that it will be using Apple’s iBeacon technology to deliver updates to its passengers passing through Heathrow airport in the UK.<p>The company said its initial ideas for implementation are only scratching the surface, but that it will be used to inform passengers using …

What the MacBook Air needs next

A processor bump and price cut are nice, but a next-gen laptop from Apple needs more updated features.<p>It's a regular ritual now. Apple announces updates to the popular MacBook Air laptop line, sometimes at a major event such as WWDC, sometimes quietly in the middle of the night, as in the case of …

MacBook Air

Video posted of iPhone 6 mockup consistent with earlier photos

French site <i>Nowhereelse</i>, which posted photos of a claimed dummy mold of the iPhone 6 a couple of days ago, has now posted new photos and a video of a similar physical mockup said to come from supply-chain sources.<p>It’s important to note that while this is consistent with earlier claimed leaks, it is …

Apple Patents MacBook Keys With Built-In Displays, Touch Sensors And Haptic Feedback

Apple may be planning a big upgrade for the standard computer keyboard, according to a new patent filing published by the USPTO and spotted by AppleInsider today. The filing describes a notebook keyboard that has keys which integrate miniature displays, touch sensors and haptic feedback motors all …

Indoor Positioning Startup Wifarer Not Acquired By Apple, But Its Founder Now Works There

If a CEO and co-founder quits his indoor positioning startup to work for Apple, should his staff and customers be concerned? Wifarer, a startup which offers tools to help consumers navigate malls, museums and other venues, was <i>not</i> acquired by Apple, we learned, while following up on some tips …

Apple's WWDC 2014 to Focus on OS X 10.10 as Apple Pulls Resources from iOS 8 to Help

According to <i>9to5Mac</i>, Apple may use WWDC 2014 to focus on OS X 10.10, giving the desktop OS more attention than iOS 8 during the annual developer conference. Apple allegedly has been moving iOS user interface developers to the OS X teams in order to finish up the new design in time for early June …

Apple's new hire focuses on renewable energy

Bobby Hollis, a former vice president for renewable energy at NV Energy, is now senior renewable-energy manager at Apple.<p>Apple has hired a longtime renewable-energy expert as part of its efforts to green up.<p>Bobby Hollis has been appointed senior renewable energy manager at Apple, according to his …

Renewable Energy

Apple envisions touch sensitivity for keyboards

As described in a freshly-published patent filing, the keyboard on future MacBooks could incorporate "keystacks" with touch sensors and visual feedback.<p>Your Apple keyboard of the future could let you swipe across the keys to perform actions now handled by the trackpad.<p>Published on Thursday by the …

Patents

The smartphone accessory that makes you a better film photographer

Photography is all about light. It’s about capturing light, manipulating light, and interpreting light. Today’s digital cameras use advanced algorithms and sensors to properly measure light and then record what you’re seeing with your eyes. But cameras weren’t always so smart and sophisticated, and …

Apple’s iPad maintains a narrowing lead, still almost a third of all tablets sold

Research firm IDC is out today with new data on the state of the tablet and 2-in-1 market in the first quarter of 2014. As you might expect after Apple’s most recent earnings report, Q1 unit shipments of iPad were down by 3 million from 19.5 million to 16.4 million between 2013 and 2014. For its …

Why you shouldn’t buy a new iPhone for a stranger in exchange for cash

In the underground world of iPhone trafficking, someone has to take the fall. Unfortunately, it appears to be the homeless and others in desperate need of some quick cash.<p>9News in Denver, Colorado has shone light on how traffickers who sell unlocked iPhones for a premium outside of the U.S. take …

iPhone

iWatch Reportedly Entering Production in Small Quantities Ahead of Fall 2014 Launch

Apple's suppliers have already begun producing the iWatch in small quantities, according to supply chain sources cited by <i>China Times</i> via <i>G for Games</i>, ahead of a prospective launch during the second half of 2014.<p>Echoing an earlier report from notable analyst Ming-Chi Kuo, the site's sources also …