Automatically Generate A RESTful Web Service Based On A Core Data Model (Ruby Gem)

I’ve mentioned a number of great tools and libraries for working with Core Data such most recently iActiveRecord a lightweight Active Record library, TICoreDataSync for syncing Core Data databases between any number of devices, and an editor with Objective-C code generation.

Here’s a Ruby gem that you point at your Core Data model by editing a simple config file (example included) and a RESTful web service is created for you based on Rack that makes a great starting point for your own files.

You can find download info and documentation on the Github repository here.

The include example is based on the AFNetworking addon AFIIncrementalStore.

A great script to start from for building web services for your Core Data.

DeliciousTwitterFacebookRedditLinkedInEmail


Open Source iOS UIImageView Category Adding Easy Asynchronous Image Downloading

If you’ve been looking for a quick and easy way to load images from the web into a UIKit based app I’ve come across a very handy UIImageView category that adds in the capability of easily loading images asynchronously from the web.  In addition to the downloading the category also provides caching and error checking.

As stated in the readme the library provides:

  • An UIImageView category adding web image and cache management to the Cocoa Touch framework
  • An asynchronous image downloader
  • An asynchronous memory + disk image caching with automatic cache expiration handling
  • A guarantee that the same URL won’t be downloaded several times
  • A guarantee that bogus URLs won’t be retried again and again
  • Performances!
The category known as SDWebImage by Oliver Poitrey can be downloaded using Git with:
git clone https://github.com/rs/SDWebImage.git 

You can find the category on Github here and the documentation can be found here.

A very handy category to have if you’re looking for a simple way to add in images from the web for a UITableView.

Some Related Stuff You Might Be Interested In:

– Easy To Use Concurrent Downloading Library That Uses NSURLConnection
– Open Source iOS Library For Easy Image Downloading From Instagram, Facebook, Flickr and Picasa
– iOS Developer Libraries Category

 

DeliciousTwitterFacebookRedditLinkedInEmail


Simple Drag and Drop on iPhone

Drag and drop is an intuitive way for users to interact with an application. But it might not be obvious to the developer how to implement such an interface. Today we’ll look at drag and drop: we’ll build a very simple app to change a view’s color depending on the background color of an image view dragged into it. So let’s get started!

Start Xcode, choose “Create a new Xcode project.” Select the Single View Application template and click next. Name the project “DragDrop,” and give it the options shown here:

Click Next, choose a location to save your project, and click Create.

Open the ViewController.zib file, and add four UIImageViews and a UIView to the interface as shown:

Change the background color of each image view; all the image views should have a different color. (Note that you will not be able to see the background color of an image view in the interface builder.)

In the ViewController.h file, we’ll add the following:

#import <UIKit/UIKit.h>

@interface ViewController : UIViewController

@property (nonatomic, strong) IBOutlet UIView *dropTarget;
@property (nonatomic, strong) UIImageView *dragObject;
@property (nonatomic, assign) CGPoint touchOffset;
@property (nonatomic, assign) CGPoint homePosition;

@end

We’ve added an outlet property to represent the UIView object we added to the interface. The dragObject property will represent the image view being dragged, touchOffset is the distance between the actual touch point and the upper left corner of the dragObject, and homePosition will keep the dragObject’s original position on the screen.

In order to implement drag and drop, we have to track not only when touches occur, but how they move about the screen (drag) and where they end (drop). Every view controller adopts four delegate methods that assist in this process. They are:

?     – (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
?     – (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
?     – (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
?     – (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event

In this demonstration, we’ll make use of the first three of these methods; touchesCancelled: withEvent: is called only when a system event (like a low memory warning) cancels the touch event. (In a production app, we would use this method to do “clean up” if necessary.)

Open ViewController.m and add the following between the @implementation line and the viewDidLoad method:

@synthesize dropTarget;
@synthesize dragObject;
@synthesize touchOffset;
@synthesize homePosition;

– (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
    if ([touches count] == 1) {
        // one finger
        CGPoint touchPoint = [[touches anyObject] locationInView:self.view];
        for (UIImageView *iView in self.view.subviews) {
            if ([iView isMemberOfClass:[UIImageView class]]) {
                if (touchPoint.x > iView.frame.origin.x &&
                    touchPoint.x < iView.frame.origin.x + iView.frame.size.width &&
                    touchPoint.y > iView.frame.origin.y &&
                    touchPoint.y < iView.frame.origin.y + iView.frame.size.height)
                {
                    self.dragObject = iView;
                    self.touchOffset = CGPointMake(touchPoint.x – iView.frame.origin.x,
                                                   touchPoint.y – iView.frame.origin.y);
                    self.homePosition = CGPointMake(iView.frame.origin.x,
                                                    iView.frame.origin.y);
                    [self.view bringSubviewToFront:self.dragObject];
                }
            }
        }
    }
}

– (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
    CGPoint touchPoint = [[touches anyObject] locationInView:self.view];
    CGRect newDragObjectFrame = CGRectMake(touchPoint.x – touchOffset.x,
                                           touchPoint.y – touchOffset.y,
                                           self.dragObject.frame.size.width,
                                           self.dragObject.frame.size.height);
    self.dragObject.frame = newDragObjectFrame;
}

– (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
{
    CGPoint touchPoint = [[touches anyObject] locationInView:self.view];
    if (touchPoint.x > self.dropTarget.frame.origin.x &&
        touchPoint.x < self.dropTarget.frame.origin.x + self.dropTarget.frame.size.width &&
        touchPoint.y > self.dropTarget.frame.origin.y &&
        touchPoint.y < self.dropTarget.frame.origin.y + self.dropTarget.frame.size.height )
    {
        self.dropTarget.backgroundColor = self.dragObject.backgroundColor;
       
    }
    self.dragObject.frame = CGRectMake(self.homePosition.x, self.homePosition.y,
                                       self.dragObject.frame.size.width,
                                       self.dragObject.frame.size.height);
}

As always, our first task is to synthesize the properties. Next is the definition of the touchesBegan: withEvent: method. We first make sure that there is only one finger touching the screen. Next, we look at all subviews of the main view, and for each, we see if the touch occurred inside that view’s frame. We also verify that the object touched is an image view (because we don’t want to be able to drag the dropTarget view in this application).

If the view is an image view, and if the touch occurred inside its frame, we then designate the view as the dragObject, get the offset of the touch from the upper left corner of the view as a CGPoint, and “remember” the view’s home position. Otherwise, we do nothing.

In touchesMoved: withEvent: we get the position of the touch, then set the dragObject’s frame to the new touch position minus the touchOffset coordinates (the width and height don’t change). Changing the frame of a UIView (or anything that inherits from UIView) changes its position on the screen.

Lastly, in touchesEnded: withEvent: we observe whether the last touch point is inside the frame of the dropTarget. If it is, we change the background color of the drop target to the background color of the dragObject. Regardless of the dragObject’s position, we send it back to its homePosition. This ensures that the draggable objects will always be in the same location between touch events.

Run the application and drag the image views to the dropTarget.

Notice that as you drag an image view about the screen, it always stays on top of the other views on the screen. This is because in touchesBegan: withEvent: we have called bringSubviewToFront: on the controller’s view, with the dragObject as the subview.

Experiment with this technique. You might want to change the text in a label by dragging some other label to it, or open a text file in a UITextView control by dragging the filename to it from a label, for example. You might also try limiting the kinds of dragObjects a particular dropTarget will accept. There are many things possible; here we have outlined the general method to get you started.

Have Fun!

The Amazing Spider-Man Spins a Web of Fun

Marvel’s The Amazing Spider-Man hit theaters in July, becoming the second movie this summer from the House of Ideas (the first being The Avengers). Whenever Spider-Man gets a flick, a game is guaranteed. In this case it’s the film’s eponymous release from Gameloft.

Peter Parker’s alter ego has been featured in video games since the 1970s. In the digital world, he’s probably faced his entire rogues gallery. He’s also been playable in every beat-‘em-up, fighting, role-playing and side-scrolling fashion imaginable. But The Amazing Spider-Man is where fans get the Spidey who does all of those ? and has been missing from other adaptations. Let’s find out more after the jump.

Somebody Call for a Web-Slinger?

After a brief slideshow tells his tragic origin story, Spidey is summoned into a series of missions. These interconnected interludes ? which often include banter-laced dialogue ? involve rescuing damsels in distress, cracking the heads of crooks and eventually taking on his scaly arch-nemesis, The Lizard.

Chat up the locals

Chat up the locals

As exciting and attention-grabbing as the characters are, the scenery also deserves recognition. Taking place throughout New York City, The Amazing Spider-Man allows our hero to freely interact with his 3-D surroundings. That means Spidey can web-sling from most streetlights and wall-crawl on any skyscraper. He sometimes even encourages extroverted passersby to wave or duck when web-spinning close enough.

Become a wall-walker

Become a wall-walker

At his disposal are awe-inspiring agility and streak-of-light speed, but be warned that not all of his abilities are available right away. Players earn skill points after successfully taking on thugs and completing tasks. From there, gamers can cash them in to upgrade attack combos and life gauges, as well as purchase other unlocked goodies.

To get those points, clobber the robbers and any other baddies who name-call or threaten. A map in the upper right corner of the screen will guide you to where the action is. Once you’ve reached the area designated, walk through the fiery yellow beacon, which will initiate any character dialogue, instructions and melees.

Getting Into the Swing of Things

A typical New Yorker travels the city using the subway. Spider-Man is anything but, yet his signature commuting style is an asset is this game. By slinging webs between lampposts and buildings, Spidey can cover more ground without even touching it ? a big help during timed missions.

The computer will put a target on where your webbing will connect. Tapping the web-shooting icon thwips a thread that will propel Spidey forward. Note that the web-shooting icon is not always present. If it does not appear, Spider-Man won’t be able to complete this action. However, it may show up by simply turning Spidey in a different direction.

Web-sling your way around New York City

Web-sling your way around New York City

In cases where you need to move forward, just tap the direction key. Hold it down for several seconds to make Spidey accelerate through the busy New York streets. Tap the jump icon to clear gridlocked cars and sidewalk fixtures.

It’s Clobberin’ Time

“Wealth and fame he’s ignored, action is his reward,” says Spider-Man’s campy theme song from his 1960s cartoon. There’s plenty to go around here, courtesy of the Deadbeatz Thugs gang, who is causing a ruckus all over the city.

Spidey is always ready to lend a hand

Spidey is always ready to lend a hand

When Spidey enters into a fray, the player’s view will zoom out in order to better defend yourself against sneak attacks. Aggressors can be dealt repeated hits by tapping a simple attack button. For a faster delivery of justice, purchase upgraded moves.

Pow! Krack! Thwack!

Pow! Krack! Thwack!

One such upgrade includes a web-shooting capture trick that pulls your target in close for some spider-stinging punishment.

As the battle comes to a close, the view once again zooms in. Spidey’s final hits will be seen at close range and in slow motion. Once things wrap up, more instructions on what to do next or a new mission will be presented.

Spider Sense Tingling

Players beware! Make sure your left thumb is properly aligned with Spidey’s direction button. Failure to do so could result in incomplete missions courtesy of slow running, misfired webs and not clearing jumps. It can also botch attempts to scale walls and fences at a rapid pace.

Also remember that web-slinging is an art. Frustration will find those who don’t take to it right away, but it doesn’t take long before players can become advanced athletes.

Upgrade your skills to tackle tough tasks

Upgrade your skills to tackle tough tasks

Skipping dialogue isn’t a possibility at certain points of the game. Talkative opponents may try your patience if you’re itching for a fight.

Another gripe? Spidey at first is unable to jump and stick to buildings. But perhaps this is one of the many skills he earns further in the game.

Spider-Man to the Rescue!

Spider-Man is known for his wit and quips, and there’s no shortage of either in The Amazing Spider-Man. While the dialogue may at times be corny, the story mode is engaging and ? though it’s based on a movie ? succeeds in bringing his comic book mythos to life. This also helps flesh out the game’s plot. Spider-Man isn’t simply running around the city fighting crime. In this game, we learn his purpose, one that builds in suspense as he completes his individual missions.

The action is much improved from dialogue-heavy role-playing games. The multi-format play changes things up just enough so that players will feel challenged and won’t get comfortable repeating the same moves. Though pricier than many game options available in the App Store, The Amazing Spider-Man proves a champion in the superhero genre.

The 25 Best iPhone Apps For College Students

Just over a year ago now, I wrote an article entitled 25 Superb Mac Apps for College Students on Mac.AppStorm detailing the best Mac apps to grab to help you with your studies. As a college student myself in the third year of an Economics with German degree, deciphering all those apps in the Store and trying to figure out which ones are useful for my studies was an absolute minefield.

So, without further ado (and in no particular order), here are my personal top 25 applications for college students with iPhones. As with my previous article, I have tried to keep this list relevant to any major and, in order to save on costs, I have tried to include free software wherever I can!

Evernote_iOS_logo

Evernote

Evernote is a cloud-based note taking service and is currently one of my favourite apps on my iPhone. You can make notes, take pictures and even record audio notes as well, and all these can be easily categorised into folders — perfect if you want to remember something or take a quick audio memo during a lecture.

The app syncs across all your devices (including Mac, Windows, other iOS devices and Android) so there’s no e-mailing stuff to yourself anymore — simply load up Evernote on your home computer and all your notes are ready and waiting for you right there. A free account allows you to upload 60 MB of data a month (which is equivalent to 30,000 notes, around 600 medium-res photos and 60 audio clips), which is usually more than enough.

Price: Free
Developer: Evernote Corp
App Store Link: Evernote

iStudiez Pro

iStudiez Pro

A calendar, homework diary and planner in one, iStudiez Pro is the ultimate tool for any student. It lets you add your entire class schedule along with the room and teacher, and you can add assignments to each individual appointment (or module), ensuring no feeble excuses for forgetting to do your homework. You can also specify exactly what kind of appointment, whether it is a lecture, seminar, workshop or exam.

The app has a built-in sync function, so if you use iStudiez Pro on your iPad or Mac, then all your data will be kept in harmony and can remind you when assignments or exams are due (from 5 minutes to 2 days before). You can also keep track of your grades for each module directly from the app.

Price: $2.99 (free Lite version also available)
Developer: iStudiez Team
App Store Link: iStudiez Pro

iA Writer

iA Writer

I know how easily my mind wanders (especially in really boring lectures), so if you want a simple, distraction-free writing environment on your iPhone, then iA Writer is a great little app to use. It’s got no fancy features or settings that you have to mess around with before you start — simply load up the app and let your imagination run wild.

IA Writer modifies the default iPhone keyboard slightly so you’ve got quick access to certain punctuation marks such as colons, question marks and apostrophes, and you can also sync with Dropbox and iCloud, avoiding the need to email documents back and forth constantly.

Price: $0.99
Developer: Information Architects Inc
App Store Link: iA Writer

Dropbox

Dropbox

Dropbox has been my saviour more times than I can count, and I really do not know what I would do without it on my devices. For those of you who don’t know what it is (and I’m sure these people are few and far between!), it allows you upload virtually any file onto a cloud-based server, which can then be accessed from pretty much any device with an Internet connection.

The iPhone app allows you to upload photos and videos straight from your phone, however I use Dropbox mostly for storing large (and very boring) academic journals which I can then read on my phone. A free account gives you 2 GB of storage and if you refer your mates, you both get 500 MB of free storage (up to a limit of 18 GB) if they sign up.

Price: Free (with 2 GB of storage)
Developer: Dropbox
App Store Link: Dropbox

Google Search

Google Search

Google really needs no introduction, so I won’t bore you with the details, but the default search function on Safari is a little lacking. Yes, it does the trick, but there is so much more Google has to offer, and this is where the official Search app for iPhone comes in handy.

You can search for pretty much anything, including images, places, news and books, and if you’ve got a Google account then the app integrates with most of Google’s applications, such as Calendar, Docs and Reader. You can also search by voice, and the app also features Google Goggles, so you can search for something on the Net just by taking a picture of it (though this feature can be a little sketchy at times).

Price: Free
Developer: Google
App Store Link: Google Search

iTunes U

iTunes U

iTunes U was released back in January of this year and lets you download lectures, course material, presentations and related content from top universities around the world. The amount of stuff out there is quite amazing and you can learn pretty much any new skill using professional-grade material, from iOS programming to basic Chinese.

The app synchronises with your iCloud account, meaning that all your downloaded material is shared among all your iOS devices and the web-based course manager tool means that you can easily gather all the materials required for a certain course no matter what format they are, whether they’d be presentations, documents, PDFs or the textbooks in iBooks.

Price: Free
Developer: Apple Inc
App Store Link: iTunes U

LinkedIn

LinkedIn

After you’ve completed university, you’ll (hopefully) want to go out and get a decent and well-paid job, and LinkedIn can help you here. Think of it as Facebook with a more professional edge. Potential employers can search your profile (which is much more business-orientated than the Facebook approach) and check you out based on the skills you add to your profile.

The iPhone app is pretty neat and allows you to search the entire network (no profile editing, unfortunately), view your connections and updates from other people and add people based on your previous connections. The interface is nice and simple, and works well on the iPhone, especially since it was given a redesign a couple of months back.

Price: Free
Developer: LinkedIn
App Store Link: LinkedIn

Readability

Readability

Reading long articles on the Web can be a little tricky, especially when you’re trying to view a page designed for a desktop PC on your iPhone. Although Safari has a great Reader view, it doesn’t always work on some websites and there’s absolutely no synchronisation (yet).

Readability however, strips down all the garbage from a webpage and gives you a simple reading view. When you sign up for an account (which is completely free, by the way), all articles added sync automatically, meaning you can view any saved articles on your computer at home via the web interface and vice-versa. The app also allows you to change the theme and font of the text you’re reading, making it easier on your eyes and giving it one up over Reader.

Price: Free (requires a Readability account)
Developer: Readability
App Store Link: Readability

Sleep

MotionX Sleep

Although we students get criticised for being lazy, a good night’s sleep is absolutely essential as it sets you up for the next day. Sleep will monitor your sleep patterns by movement (you have to stick your iPhone under your pillow) and analyse them to determine how much sleep you’re getting and whether or not it is enough.

The app also includes a built-in pedometer for the fitness freaks among you, and there is a built-in alarm function which wakes you at the optimum time, ensuring you don’t oversleep (which actually can be more detremental than you think). Be aware though, that you have to configure the app before you start using it (which doesn’t take long) so that it can obtain accurate statistics.

Price: $0.99
Developer: MotionX
App Store Link: MotionX Sleep

Spotify

Spotify

College life doesn’t have to be all work and no play and I’ve found that if I’ve got a spare hour between lectures, there’s nothing better than going and finding a quiet spot on campus somewhere, plugging in your headphones and chilling out to some music.

Spotify lets you listen to its entire library directly from your iPhone and, if you use it on your desktop, will sync all your playlists and allow you to download songs for offline listening — useful if you haven’t got any signal or limited data. You’ll need a Spotify Premium subscription though (which costs $9.99 monthly), but with this you also get unlimited listening (as supposed to 10 hours a month) and no annoying adverts, a definite bonus. Be aware though, that streaming music does eat into your data plan an awful lot, so make sure you’ve either got enough data or you’re connected to the college’s Wi-Fi network!

Price: Free (Spotify Premium subscription required)
Developer: Spotify
App Store Link: Spotify

WhatsApp

WhatsApp Messenger

It’s BBM for pretty much any mobile device and WhatsApp has, for me anyway, become one of the main ways to communicate with my mates — mostly because it’s free and a lot quicker than sending a text. Unlike BBM, there’s no “PIN” — your WhatsApp account works via your phone number and any contacts who have WhatsApp installed will pop up in your Contact list.

You can send short messages, pictures, audio notes and contacts via WhatsApp, and there is a useful Group Conversation mode (great for discussing group projects, I find!). The app itself costs 99 cents, but with that you get a subscription for life — a small price to pay for such a useful app!

Price: $0.99
Developer: WhatsApp Inc
App Store Link: WhatsApp Messenger

wikipedia-app-icon

Wikipedia Mobile

Despite the evil frowns you’ll get from lecturers who deem it an “inaccurate source of information,” Wikipedia is the first place for research for most students. However, trying to view an article on mobile Safari is incredibly irritating as I find myself constantly having to flick back and forth to read it (the mobile view can screw up sometimes), so this is where the mobile version comes in handy.

Although it can be a bit buggy in places (and sometimes throws a hissy fit and doesn’t load a page), it is still the best way to view Wikipedia on a mobile device and allows you to save articles for offline reading and switch easily between languages. Plus, it’s free (unlike many Wikipedia clients for iPhone on the App Store).

Price: Free
Developer: Wikimedia Foundation
App Store Link: Wikipedia Mobile

WolframAlpha

WolframAlpha

Probably one of the only services more knowledgeable than Wikipedia, Wolfram Alpha manages to answer pretty much any question you throw at it, from the population growth rate of Belarus (-0.466% per year) to what percentage of kids are repeating primary school in Mexico (3.615%). It can intepret pretty much any question and access a wide range of databases.

No matter what your major is, WolframAlpha will be an invaluable app if you just want to look up a quick fact, and can save you an awful lot of time in the long run. Its examples also cover a wide range of fields, including mathematics, physics, chemistry, earth sciences and linguistics, and is well worth the small fee.

Price: $1.99
Developer: Wolfram Alpha LLC
App Store Link: WolframAlpha

Moneywiz

MoneyWiz

As a student, I know how important it is to keep track of your finances and keeping on top of them is an absolute chore — especially when you check your bank account after that enjoyable night out on the town. Unless your bank has developed an iPhone app, then the best way to manage your money on your iPhone is MoneyWiz.

You can add all your accounts to MoneyWiz (including your current/checking account, credit card, student loan account and the amount in your wallet) and the app allows you to enter each transaction as it happens along with a category, so you can keep track of your spending easily. The app will also help draw up budgets (just make sure you adhere to them!) and manage your bills, reminding you on the date it is due. It is slightly expensive, but for such a polished app with a wide range of features, the asking price really seams trivial.

Price: $4.99
Developer: SilverWiz
App Store Link: MoneyWiz

Genius-Scan

GeniusScan+

Instead of forking out for one of those printery-scanny combo things (the ones where replacing the ink cartridges often costs more than the printer itself, something I’ve never quite figured out), why not turn your iPhone into a document scanner for a much cheaper price? GeniusScan takes pictures of documents via your iPhone’s camera then converts them into a readable document using a clever post-processing technique, which makes them good enough for printing and emailing.

You can manipulate the scanned images directly on your iPhone, and if you choose to get GeniusScan+ (which is available either as a separate app or via an in-app purchase of $2.99) then the program loses its annoying ads and gives you the ability to export your scans to a variety of services (including Box, Dropbox and Evernote) as well as printing via AirPrint.

Price: $2.99
Developer: The Grizzly Labs
App Store Link: GeniusScan+

Dictionary

Dictionary.com

Although I consider myself to have a (pretty) good command of the English language, sometimes I find myself forgetting or simply not understanding a word. But the Oxford English Dictionary is a hefty book to carry around to your lectures and isn’t cheap either — you can end up spending £30 (around $50) on one.

Dictionary for iPhone is a lot more portable (and cheaper), and has a database of over 2-million definitions, synonyms and antonyms. There’s also offline access, so most words and phrases can be accessed without being connected to the Internet, and a built-in thesaurus function, so you can find fancier words for your essay or term paper to make you appear much more intelligent to your lecturer (yes, we’ve all done it). The free version is ad-supported — if you want to get rid of these you’ll have to buy the premium version for $2.99.

Price: Free/$2.99
Developer: Dictionary.com LLC
App Store Link: Dictionary.com

eBay

eBay

I’m not going to patronise you by explaining what eBay is and for students, it’s not just the place to find odd bits and pieces at cut-price rates, it’s a great place to find discount textbooks. Academic books are, without a shadow of doubt, extremely expensive (currently I’ve spent around £400, or around $600 on books for my studies) and you can grab some great bargains by having a search around on eBay, even if they are a bit dog-eared and scrawled over with notes (hey, these might come in useful someday!).

The eBay app lets you search the entire product range and manage your eBay account, such as ratings and payments and also helps you keep the items you want to sell in order, which is great if you’ve just left university and you want to get rid of all your old books (and raise a bit of extra cash!).

Price: Free
Developer: eBay Inc
App Store Link: eBay

calcbot

Calcbot

The default calculator in iOS is, in my opinion, a bit lacking in features (even after I discovered all those extra ones when you turn it on its side) so I prefer to use Calcbot, especially to add up lists. It’s made by the same geniuses behind Tweetbot (which we’ll come to in a minute) and comes not only with the standard calculator commands (add, subtract, multiply and so on) but also with quite a few advanced functions (swipe to the right on the keypad to reveal these) and an expression history which comes up as you type, meaning you can make quick corrections to long sums.

The calculation history can be saved or emailed, and you can pick out individual values out for calculation just by tapping on them, which will transfer that result into the main calculation screen. It’s a little on the expensive side for a simple improvement over the default (and free) calculator app, but you’ll find that Calcbot’s features are extremely useful over time.

Price: $1.99
Developer: Tapbots
App Store Link: Calcbot

Ted-Logo

TED

TED is a great app to help you find inspirational talks from some of the world’s most interesting people in a wide range of fields, such as education, technology, medicine, business and music. There are over 1,100 videos already in its library (with more being added each week), and on the iPhone, you can search the entire library in either online or offline mode and bookmark your favourite speeches for later use. You can also share interesting videos and playlists with your mates and download your favourite TEDTalk for playback anywhere.

Price: Free
Developer: TED Conferences LLC
App Store Link: TED

tweetbot-icon-logo

Tweetbot

No matter whether you love or hate Twitter, you’ll probably find yourself using it at some point during your university career as it is such a useful way to discover information and find out about the latest goings-on in the world (and I mean proper news, not what Kim Kardashian was wearing out lately).

My favourite client for the iPhone is Tweetbot, which was given a huge update a few months back and has loads of smart features, such as multiple timelines, smart gestures, native push notifications and mute filters, so you can shut out users without unfollowing them. There is built-in support for a number of third-party services such as Pocket, Instapaper, Readability and Droplr, and the interface is very easy to use, making it one of the most powerful clients out there on the App Store.

Price: $2.99
Developer: Tapbots
App Store Link: Tweetbot

tunein-radio-pro

TuneIn Radio Pro

TuneIn Radio Pro is a little client for your iPhone which allows you to listen to and record over 60,000 radio stations worldwide, including most of the popular ones. You can search for radio stations either by location or genre, and the built-in player lets you pause, rewind and fast forward live streams.

You can also record streams either on demand or via a record timer, and the app integrates seamlessly with iOS, so you can control playback either using the built-in music controls, Apple’s headphone controls or the dock controls. Although it costs a little tad extra, I prefer the Pro version as it gives you the ability to record and gets rid of those annoying banner ads, something which I would gladly pay 99 cents for.

Price: $0.99
Developer: TuneIn
App Store Link: TuneIn Radio Pro

Chegg

Chegg

Chegg is a great little app that allows you to rent textbooks either for one semester or the entire year straight from your iPhone. There are millions of titles to choose from in most academic fields, and you can search for titles either by name, author, ISBN or via the book’s barcode (there is an built-in barcode scanner as well).

Chegg lets you compare the rental price of the book to the actual store price, and once you’ve finished using it, returning the book back to them is totally free via UPS (the app will even help you find your nearest UPS returns location). It is a great way to save money on textbooks, and their website also has a range of eTextbooks to rent and buy as well (however, as far as I know, Chegg is only available in the United States).

Price: Free (Chegg account required)
Developer: Chegg
App Store Link: Chegg

AnyDO

Any.DO

Any.DO is one of the smartest task managers on iPhone I’ve seen for a long time, and can really help to keep your student life in order. Finding a good task manager on iPhone is, in my opinion, an absolute minefield as there are so many out there on the store, but after trying a few (including some expensive ones like OmniFocus, which costs $20), I can safely say that Any.DO is one of the best in terms of value for your money (it’s free!).

You can create tasks for today, tomorrow, this week or for later on, and set individual priorities and reminders for each one. Once you’ve finished a particular task, simply swipe to the right to mark it off as completed. The minimalistic interface and functional features of Any.DO really do (no pun intended) make it a vital tool for all college students out there to help keep your life in order.

Price: Free
Developer: Any.DO
App Store Link: Any.DO

LanguageCoach_128x128

Language Coach

If you’re studying for a language degree at university or simply fancy learning a new one, then Language Coach is a great little app with 29 different foreign languages on offer that helps make those boring vocabulary drills a little bit more exciting. Each foreign language in the app contains around 2,100 words, all articulated by a native speaker. Language Coach works off the flashcard principle, where you constantly repeat words until they are drummed into your long-term memory.

There are a number of exercises to perform to help you remember the words you’ve learnt and you can also practice your pronunciation by repeating phrases then having them compared to the native speaker’s pronunciation, helping you to improve your accent. I reviewed it back in Marc,h but beware if you’ve got limited space on your iPhone — the download clocks in around 740 MB (mostly due to all the audio files).

Price: $9.99
Developer: Jourist Verlags GmbH
App Store Link: Language Coach

Alarm Clock Pro

Alarm Clock Pro

Probably one of the most useful weapons in a student’s arsenal is a good (and loud) alarm clock to get you out of your pit of a bedroom for that 9 AM lecture. But instead of buying one of those noisy beepy things which give you a heart attack when they go off, get Alarm Clock Pro instead. You can wake up (and fall asleep to) your iPod music and you can also set other options, such as sound/music fade in (so you can wake up gradually) plus there’s a snooze function.

The app also doubles up as a bedside clock with a number of different themes to choose from, a flashlight and a weather forecast (which can be disabled). Alarm Clock Pro has constantly featured on some of the top paid utilities apps recently and its features far outweigh those on the default alarm clock function on iOS, so go ahead and grab it whilst it’s still cheap!

Price: $0.99
Developer: iHandy LLC
App Store Link: Alarm Clock Pro

Conclusion

Well, there it is readers. I really do hope that this list will help any students out there with their studies. I certainly found that the applications in this list will really complement your university degree, making life just that little bit easier as well as ensuring you get the full functionality out of your iPhone!

In the meantime, best of luck with your studies!

RSSify your iPhone with Newsify

My iPhone isn’t my go-to for reading anything. I really think the screen is too small and there are so many products on the market that have reading wrapped up. But sometimes I still find myself with a few minutes to spare and want to catch up on my Google Reader RSS feeds, with only my iPhone in sight. What to do?

Luckily, Newsify has come to my aid, with an elegant and dead simple app that has made my iPhone a reading destination for me, not just a last resort when I’ve got nothing better to do and no better e-reader on hand. Read on to find out why I’m so enthusiastic about this little app.

Starting It Up

When you open Newsify for the first time, you’ll be prompted to enter your Google account information. Newsify will begin syncing all of your RSS feeds, including the accompanying images, a process that will take a while if you’re subscribed to a lot of feeds or have a lot of unread articles in Google Reader. When sync has completed, you’ll see all of your feeds and folders in the main Newsify screen, with your unread counts off to the side.

The main screen of Newsify on the left, and viewing the newspaper layout in a folder on the right.

The main screen of Newsify on the left, and viewing the newspaper layout in a folder on the right.

If you’ve organized your RSS feeds into folders, you can tap each folder and read all of those feeds in a single, pretty sexy, newspaper layout. If you just want to read the RSS feed from a single site though, tap the arrow to the right of the folder. This will bring you to a little submenu for the folder, where you can choose to read everything in that folder (organized by date), read just the starred items in the folder, or read only a specific site’s articles.

Your Personalized Newspaper

Once you’re inside a folder or single newsfeed and Newsify has laid your articles out in print newspaper-like fashion, you have a few options. You can read something, but that just seems so obvious, so we’ll come back to that. First, tapping the ellipsis in the top right corner brings up a short menu. From here you can mark things as read, show only unread articles, or switch your view to list the articles by date. This closely resembles Google Reader’s web app, though it looks loads prettier than Google ever did. Tap the ellipsis and “switch view” if you want to return to the newspaper layout. Dragging the screen downward updates your current view, which will take more or less time depending on how many new articles you have to update and how picture heavy they are.

Reading an article on the left, and viewing an RSS feed in list mode on the right.

Reading an article on the left, and viewing an RSS feed in list mode on the right.

When you’re ready to read, tapping an article title and blurb brings the article up into fullscreen. Once you’ve read through the text of the article itself, it’s easy to keep swiping and move to the article previous or prior, turning RSS reading into one sleek, continuous experience. A lot of RSS feeds provide only an excerpt, so if you’re not lucky enough to have the full text of the article available, tap the globe icon at the top of the screen to view the original article on the web.

Sharing and Subscribing

There are also a few icons at the bottom of the screen that help you navigate. The eyeball marks articles as read and unread, while the star will, unsurprisingly, star and unstar articles. The next and back arrows allow you to move quickly among the articles without having to swipe all the way through.

A fifth icon is there to let you share on social networks, email, and really, just about anywhere. When you tap the Share icon, the first three shareables that pop up are Twitter, Facebook and Pocket. Tapping for more brings up a much longer list, including Delicious, Evernote, Instapaper and Tumblr.

Back in the main screen, Newsify allows to subscribe and unsubscribe from feeds right there in the app. Tap the Plus sign in the upper right to get the subscribe screen. Don’t worry if you don’t know the feed URL, the search function is pretty much perfect. I tried and failed to stump Newsify’s search, and it always came back with the feed I was looking for. When you find the feed you want to add, Newsify will allow you to add it to a folder or even create a new folder.

Editing the Settings

If in your misguided attempt to become informed on the world you’ve now added more feeds than you can possibly ever keep up with, it’s easy enough to remove them. Just tap Edit in the main screen and select whatever folders or feeds you want to delete. While editing in the main screen, tap the arrow next to the folder, and you’ll be taken to a rename screen. If you want to delete the individual feeds inside your folders, tap Done to get out of Edit mode, and tap the arrow next to the folder you want to edit. The Edit button is strangely on the opposite side of the screen inside folders, but it does the same thing, and will allow you to delete individual feeds here, too.

Working inside the settings, and an alternate view of an RSS feed.

Working inside the settings, and an alternate view of an RSS feed.

The gear at the bottom of the main screen allows you to fiddle with your settings, and there are quite a few settings with which to fiddle. You can sign in and out or update your password if it’s changed. You can also change what font is used and size everything up a bit if you need to. This is where you choose how your feeds are arranged, whether you’d like to read in landscape view and if you want an unread count badge on Newsify’s icon on the home screen.

Sync settings allow you to adjust how much you want to download to your iPhone with every sync and how long you want to keep all of that there. Newsify gives you the option of turning off image sync when you’re not on Wi-Fi, and let’s you decide how many total items Newsify can download at any one time. These are all really important settings to have, especially with full-text, image-rich feeds that can really fill up a chunk of your iPhone’s memory.

Conclusion

I can’t say enough about the design of Newsify. It has a similar sleek feel to that of (previously reviewed) Flipboard while being 100% its own app. Newsify is incredibly easy to move around in and really intuitive, and my myopic eyes had no trouble reading the articles inside the app — something that has been a problem for me with other iOS readers.

The ease of use and quality of design make this one a winner. It’s incredibly customizable and manages to do everything the Google Reader webapp does on your iPhone, while looking ten times better doing it. If you haven’t found the right iOS feed reader for you or are looking for something new, definitely give Newsify a look.

Do You Use Your iPhone for Work?

I assume that everyone reading this site has an iPhone (or wants to get one sometime soon), but how many of you use it for work? Now I’m not just talking about having your company e-mail on the phone, I mean real work: writing out articles, mapping out buildings, teaching someone a new language, stuff like that. Is your iPhone more for work than it is for pleasure? Let us know in the box to the right.

Twittelator Neue Gives a Different Look to Twitter on the iPhone

There are a plethora of ways to access Twitter on the iPhone, from the renowned Tweetbot to the social network’s (mediocre) official app. One that’s been around for even longer than the original Tweetie, however, is Twittelator. It was released back in December of 2008, five months after the App Store was unveiled. As one of the legends, Twittelator has a history and includes a surplus of great features.

But today people like well-designed apps over featured ones, which is why Stone, the developer of Twittelator, released Twittelator Neue in October of last year. Not only has the design been altered to have a more modern feel, but the app also aims to change the way you experience Twitter. I’ve been using it quite a bit these past few days just to see if it could be an alternative to Tweetbot. Now, let’s find out.

Getting Started

When you first open up Twittelator Neue, you’ll be greeted with a welcome screen that has a Continue button on it. Just tap that to begin setting up your account. If you already have an account configured in iOS, then all you have to do is tap Ok to begin using the client. If not, just input your credentials as you usually would when logging in to Twitter on the web. Once you’ve got your account all straightened out, Twittelator will ask you if you’d like to follow the designer and developer of the app on Twitter. After that, tap Finish and you’re off to your main timeline.

The developers of Twittelator Neue welcome you and ask for a follow.

The developers of Twittelator Neue welcome you and ask for a follow.

You’ll have to authorize Twittelator Neue separately by signing in to access direct messages if you plan on using those in the app.

Tweeting

Since the main thing that most people do on their iPhones is Tweet, I thought I’d take a look at that first. Sadly, there’s not much to do in Twittelator Neue’s Tweet screen besides the very basic functions you’d expect to find in any Twitter client: location information, picture uploading, and username and hashtag autocomplete. I know it seems like an irrelevant thing since Twitter is limited to 140 characters, but what ever did happen to supporting services like Twitlonger and twtmore in apps? Some people still use them, you know.

Location services and Twitter username autocomplete.

Location services and Twitter username autocomplete.

Other than that, accessing drafts is a pain and shouldn’t be in the More (*) tab, it should be in the composing screen. For some reason, image and video uploading are set to Moby by default when the former should at least be on Twitter’s official service. I did like the Facebook feature that lets you publish Tweets to your Facebook Wall as well as your Twitter account, but I never actually used it.

Browsing

In Twittelator Neue, the main timeline appears a bit differently than you’re used to. No, it’s not a complete experience change like Quip, just some different stuff. For example, the only gesture available is swiping right to left to change the tab you’re in — timeline, mentions, profile, etc. To reply to a Tweet, you can tap it and then tap reply or any other action you wish to perform.

Inline images and conversation view.

Inline images and conversation view.

Another way of executing all the actions available in that menu, instead of swiping over it like you’d do in Twitter’s official app, is to simply hold the Tweet. A little menu will pop up, prompting you to take action. Other little perks in this client are inline images, fancy animations, and a nice font. But more on that later.

Search, trends, lists and retweets are available in the More (*) tab.

One thing that was disappointing to me is the lack of support for Readability. Twittelator Neue does support “save for later” services such as Instapaper, Pocket and (this is kind of strange to see) Omnifocus, but not for Readability, which is a very popular option.

User Interface

I really love what the designer did with the user interface of this app. The icon has a nice, subtle, colorful gradient with a simple blue egg on it and the rest of the app, while not so colorful, is very nice on the eyes. One thing that I really love about using this client are the animations throughout. Pulling down the feed to refresh brings up a beautiful paper-like unfolding animation (below) that gives a different feel to the app.

Fancy pull-to-refresh and another inline image.

Fancy pull-to-refresh and another inline image.

Inline images in Twittelator Neue are unlike anything you’ve ever seen before. Instead of having small icon-sized image previews like Tweetbot, this app gives you banner-style ones that are a bit smaller than a one-line Tweet. Other little things like the nice paper texture background, transitions found when composing a Tweet and going to the more (*) tab, and overall feel of polish make this app feel mostly solid, save for little hiccups here and there.

Issues

  • The sound effects are annoying. For one thing, they’re not subtle enough to just be in the background so you notice them and take little note of their presence. Instead, they have to be rather disrupting with a higher pitch than normal keyboard taps would have. If sounds on your iPhone are turned up quite a bit, then I’d suggest lowering them when using this app because you may find navigating to be irritating.
  • What happened to the pull-to-refresh sound effect? It’s not there.
  • Push notifications cost $1.99 per year, which is a bit ridiculous. No, it’s not expensive, it’s just absurd that they want to charge you an in-app purchase just to get push notifications when you can get them from Twitter’s official app for free and Tweetbot for the same price as this app. I don’t understand the reasoning behind this, but it should be changed.
  • Even though transitions are nice, things do get a bit sluggish and unresponsive when you go to scroll through direct messages. I’m not sure why this happens, but it can be annoying.
  • Conversation view seems to cut off the edge of each participant’s profile picture. Not to mention it can be somewhat glitchy here and there.
  • And worst of all, since Tweetbot has it, there’s no streaming. It’s also a bit slow at refreshing content streams.

It’s a Good Client, While the API is Around

I’m not sure if you should be spending money on this app, or really any third-party client for that matter, due to the fact that Twitter may be restricting access to third-party clients very soon. However, if Twitter does decide to leave API access intact for existing apps and you want to try out something different from Tweetbot and the official app, I’d suggest trying out the free version of this app, but not purchasing it. In all honesty, I don’t see the app serving its main purpose: to be “a fresher way to tweet.”

Overall, there’s a lack of customization in Twittelator Neue (Oh, and then there’s that push notification charge). I suppose a more modern client should be somewhat feature-free compared to something like Tweetbot, but I just found no reason to recommend why someone should purchase this app save for the fact that it’s a bit “different” than others out there.

Ita: Lists You Like

Lists, almost everybody uses them — heck, I’m addicted to them. Despite the widening prevalence of iOS devices in the daily workflow, good old notebooks have always been my personal preference for creating lists of any kind. The reason? One-thirds nostalgia, two-thirds indecisiveness. You see, there are an abundance of list making and GTD apps out there, but none have peaked my interest enough to replace the notebook, until now.

Why Ita?

I know what you’re thinking: you already have a great app for organisation, à la OmniFocus and Things, so why would you want another icon cluttering your home-screen? Simple. Lists are not supposed to be complicated, lists are made on the fly, lists don’t need planning. Checkboxes and push notifications are great but, simply put, it’s overkill for list-making. Ita knows its purpose and provides just enough functionality to make it a must-have app.

Ita supports iCloud for cross-device syncing of your lists.

Ita supports iCloud for cross-device syncing of your lists.

Usually I wouldn’t start a review with synchronisation features, but the first thing you see upon opening Ita is a big welcome and your storage options. My lists are largely created on the iPad but it’s very impractical to take the device shopping, for instance. However, thanks to Ita’s iCloud integration and the fact that it’s a Universal app, lists are available across all devices and go wherever you go. Don’t have an iPad? Don’t use iCloud? Don’t despair, simply tap Local when first opening the app or visit Settings.

Creating & Managing Your Lists

Ita is not a task manager, nor does it pretend to be, and that is the greatest thing about it. There is no visual clutter to distract or fancy features that may sound cool but you never use — only great tools for making lists of any kind. To get started, simply tap the “+” button from the start screen to reveal a mock envelope template to name the list.

Creating new lists is easy, name your list and add your first entry, then tap 'Return' to enter as many items as you like.

Creating new lists is easy, name your list and add your first entry, then tap ‘Return’ to enter as many items as you like.

Formulating your list is seamless, just start typing your terms right from the off to get started and then tap return to immediately begin the next line. It really is as simple as that, the only downside for me is the way in which newly listed items enter above existing entries rather than descending below them. Editing and moving the contents of a list is possible by swiping over the desired to reveal the options shown below.

To re-order entries in a list; tap, hold and drag to the desired position. To delete or edit an entry swipe over the top of an entry to reveal the options.

To re-order entries in a list; tap, hold and drag to the desired position. To delete or edit an entry swipe over the top of an entry to reveal the options.

Unlike on the iPad, listed items can only be edited one by one by swiping across them. From here you can re-order, edit and remove your selected items. As I mentioned, newly created entries automatically supersede older ones, so if you’d like to re-order them, tap and hold your desired item until it turns maroon then drag to where you want. It couldn’t be easier. More options are available from the arrow button on the bottom left of the screen, including the ability to email and message your lists.

Rather than having checkboxes, Ita allows you to tap an item to "complete" it.

Rather than having checkboxes, Ita allows you to tap an item to “complete” it.

A killer feature that negates the need for a checkbox is the tap to complete option. Most of the lists I personally use are not necessarily of a “to-do” nature, yet it is still useful to keep track of completed items. For example, my favourite list in Ita is a “Movies to See” entry, and every time I’ve seen one of the listed films I simply tap the relevant entry and it moves to the bottom of the list in transparent text. Conversely, to reopen an item as “incomplete,” just tap once more and it will return to its full opacity.

In the same vein as ordering items within a list, ordering the lists themselves is done by tapping until highlighted and then dragging to the appropriate position. All in all, creating and managing whatever it is you want to list couldn’t be more straightforward, in fact, Ita makes the whole process enjoyable and beautiful to look at with some cool design elements.

Great Functionality and Beautiful Design

Functionality wise, Ita is fantastic — bare bones but quality, and the design is equally as great. Ita’s developers could be deemed to have a taken a risk with their style choices for the app by implementing elements of skeuomorphism into the very fabric of Ita’s user interface. Apple’s inclusion of the style in the iCal and Address Book apps for OSX sparked a hot debate regarding the style, but Ita pulls it off perfectly.

Left: Lists show more wear & tear blemishes over time as shown by the pointers. Right: The faux-manila envelope interface is beautifully minimalist, and is featured throughout the app.

Left: Lists show more wear & tear blemishes over time as shown by the pointers. Right: The faux-manila envelope interface is beautifully minimalist, and is featured throughout the app.

The faux-manila envelope style throughout Ita is beautiful and definitely appeals to the nostalgic side of my taste. Unlike Apple’s faux-stitching in iCal, the interface of Ita really works and makes the app great to use and also to look at. An optional feature is list aging. the more you open and edit a list, Ita automatically applies wear and tear blemishes to the “paper.” This effect syncs across all your devices so each list looks the same! Though it is quite a cool feature, I decided to turn it off after a while, and if you’d like to do the same just go to the Settings app.

The Perfect List App?

I have tried many apps to manage my lists but not a single one comes close to the quality of Ita. The combination of simplicity, minimalism, a beautiful interface and iCloud support make this an indispensable app for those of us who love making lists. A useful feature I’d like to see in an update is the ability to export selected items from one list to another or a copy and paste style ability, though not essential it would be a great addition. Ita has become one of the most used and integral apps on my iPhone, and at $1.99 its a total steal.

Using Toolbars in iPhone

The UINavigationController maintains a UIToolBar for each view controller in its stack. This toolbar is normally hidden, but we can place buttons on it and display it any time we want. Let’s see how this is done.

Start Xcode, select “Create a new Xcode project” and select the Empty Application template. Click Next, name the project ToolBarButtons, and choose options as shown:

Click Next, choose a location to save the project, and finally click Create. When the project has loaded, select the AppDelegate.m file, right-click that file, and select “New File” from the popup menu. (The reason we selected the AppDelegate.m file first is that Xcode will place newly created files immediately below the selected file in the navigator.)

Select the Objective-C class template, click Next, and name the class MainViewController. Make sure that the class is a subclass of UIViewController, and also create a XIB file for the controller’s view as shown:

Click Next, accept the default location, and click Create.

Now we’re going to set up a navigation controller having a MainViewController object as its root view controller. Select the AppDelegate.h file, and add the two properties for the UINavigationController and the MainViewController as shown:

#import <UIKit/UIKit.h>
#import "MainViewController.h"

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) UINavigationController *navController;
@property (strong, nonatomic) MainViewController *rootViewController;

@end

Make sure that the MainViewController file is imported, otherwise we won’t be able to instantiate on object from it.
After adding the navController and rootViewController objects, Open the AppDelegate.m file, and make the following changes:

#import "AppDelegate.h"

@implementation AppDelegate

@synthesize window = _window;
@synthesize navController = _navController;
@synthesize rootViewController = _rootViewController;

– (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    // Override point for customization after application launch.
    self.rootViewController = [[MainViewController alloc] initWithNibName:nil bundle:nil];
    self.rootViewController.title = @"Main View";
    self.navController = [[UINavigationController alloc] initWithRootViewController:self.rootViewController];
    [self.window addSubview:self.navController.view];
    self.window.backgroundColor = [UIColor whiteColor];
    [self.window makeKeyAndVisible];
    return YES;
}
…

As always, we first synthesize our properties. We’ve only shown the application: didFinishLaunchingWithOptions: method here, because it’s the only method we will be making changes to. Leave the remaining methods in place.

First, we allocate and initialize the rootViewController. The nib name of nil in this case directs the compiler to associate this controller with the XIB file that was created with it (MainViewController.xib). A bundle of nil directs the compiler to use this application’s bundle. After we initialize this controller, we set its title to @”Main View.” This title will appear in the navigation bar for this view controller.

Next, we set up the navController object. We make rootViewController this object’s Root View Controller. Adding the navController’s view to the main window as a subview, we then make the main window key and visible, and we’re off and running.

In the MainViewController.xib file, choose a nice color for the view:

Since the view controller’s title property was set to @”Main View” in the AppDelegate, that title will appear at the top of the interface when we run the app:

Open the MainViewController.m file, and make these additions to initWithNibName: bundle:

– (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
       
        // set up the nav bar button:
        UIBarButtonItem *btnShow = [[UIBarButtonItem alloc]     initWithBarButtonSystemItem:UIBarButtonSystemItemSearch target:self     action:@selector(toggleToolBar)];
        self.navigationItem.rightBarButtonItems = [NSArray arrayWithObjects:btnShow, nil];
       
        // set up the tool bar buttons:
        UIBarButtonItem *btnRed = [[UIBarButtonItem alloc] initWithTitle:@"Red"         style:UIBarButtonItemStyleDone target:self action:@selector(btnRedTouched)];
        UIBarButtonItem *btnBlue = [[UIBarButtonItem alloc] initWithTitle:@"Blue"       style:UIBarButtonItemStyleDone target:self action:@selector(btnBlueTouched)];
        UIBarButtonItem *spacer = [[UIBarButtonItem alloc]      initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil];
        UIBarButtonItem *btnGreen = [[UIBarButtonItem alloc] initWithTitle:@"Green"     style:UIBarButtonItemStyleDone target:self action:@selector(btnGreenTouched)];
        self.toolbarItems = [NSArray arrayWithObjects:btnRed, btnBlue, spacer, btnGreen, nil];
       
    }
    return self;
}

First, we add a UIBarButtonSystemItemSearch button to the navigationItem’s rightBarButtonItems array. This button will be placed at the right of the top navigation bar. Next, we set up three bar buttons (btnRed, btnBlue, and btnGreen) and a spacer. The three buttons each have a selector, these will be defined shortly. Each also is initialized with a title, and a style of UIBarButtonItemStyleDone, which will produce a button with a blue background and white bolded text.

The function of the spacer is to add “flexible space” between btnBlue and btnGreen. Flexible space will act as a “spring” between the two buttons, pushing btnGreen all the way to the right of the tool bar. Since this space is invisible, it makes no sense to assign it an action method, so we have set both the target and action of this object to nil.

Now that we have the buttons, we need to add them to the tool bar. Each view controller has it’s own toolBarItems property, which is an NSArray of UIBarButtonItem objects. This line:

self.toolbarItems = [NSArray arrayWithObjects:btnRed, btnBlue, spacer, btnGreen, nil];

stuffs the toolBarButtons array with the three buttons and the spacer.

All that remains now is to implement the four methods we set as actions in the buttons:

– (void)toggleToolBar
{
    BOOL barState = self.navigationController.toolbarHidden;
    [self.navigationController setToolbarHidden:!barState animated:YES];
}

– (void)btnRedTouched
{
    self.view.backgroundColor = [UIColor redColor];
}

– (void)btnBlueTouched
{
    self.view.backgroundColor = [UIColor cyanColor];
}

– (void)btnGreenTouched
{
    self.view.backgroundColor = [UIColor greenColor];
}

toggleToolBar gets the hidden property of the tool bar, then sets that property to its negation. In other words, if the tool bar is hidden it will be shown, if it is shown it will be hidden.

The three btn…Touched methods set the color of the view’s background to red, cyan, or green when they are touched.
Run the app, and enjoy:

Mountain Lion 101: Reminders and Notes

Two more iOS apps that made their way to OS X Mountain Lion are Reminders and Notes. Let’s take a quick look at how both of the new apps work on the Mac and how they integrate with their iOS counterparts.

Reminders

Reminders is one of the iOS apps that I was waiting for on OS X, and now that it’s here I am dumping my many other to-do apps. Why? Well, it’s not that I don’t like buying a lot of apps, but if I can get something that is integrated into my operating systems and free, I’m going to go for it.

The OS X Reminders app looks a lot like the iPad version in landscape orientation, but there are some differences. The iOS version has a list of Completed reminders; that’s not visible on the Mac version.

One of the big advantages about having Reminders on all of your Apple devices is that adding, editing, or removing a reminder on one device synchronizes the changes to all devices. The sync times vary depending on how busy things are, but I’ve usually seen updates on all devices within a few minutes.

Clicking on the info “i” for any reminder allows you to edit the details, including visual/alert reminders and geofencing. I love being able to look up an address for a place in Safari, then pasting that location into the “custom location” field so that I’m reminded of something on my iPhone when I arrive there.

Mountain Lion 101 Reminders and Notes

While many OS X users may bemoan the simplicity of Reminders, that’s what I personally love about it. I plan on using this app with the iOS counterpart a lot.

Notes

Unfortunately, Apple decided to make the Notes app for Mountain Lion look a lot like the iOS version. It uses the same mock legal pad, the same default Noteworthy Light font, and is pretty minimalistic in nature. On the plus side, that makes the Notes app extremely easy to use. You’ll get a “notebook” for every email account that you enable in the “Mail, Contacts, and Calendars” System Preference — checking the “Notes” box adds that feature to a particular account.

Mountain Lion 101 Reminders and Notes

For simplicity, I chose to disable all except iCloud, so that’s where all of my notes are. Or should I say, were. I had some notes that were associated with a specific Gmail account that I am no longer using. This morning, I saw them. Later, they were gone, because I had deleted that Gmail account. Having one account for notes makes life a lot easier.

As with Reminders, synchronization of Notes is crazy fast — if you don’t see an update immediately, close out of the app on another device and then re-open it, and it will reflect any changes you’ve made on the Mac.

I found a bit of a bug with Notes, however. As I was trying to write a long note on the Mac, Notes kept showing an “Updating” message in the title bar of the note, and it would lose my insertion point. Others were not seeing the issue, so perhaps it is a conflict with another app I have running.

Still, Notes for OS X is going to make it easy to use an iPhone or iPad equipped with Siri as a dictation device, and then transfer the text to a Mac automatically.

Continue reading Mountain Lion 101: Reminders and Notes

Mountain Lion 101: Reminders and Notes originally appeared on TUAW – The Unofficial Apple Weblog on Wed, 25 Jul 2012 14:45:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Mountain Lion 101: Dashboard changes

Mountain Lion 101 Dashboard changesApple introduced the Dashboard and Widgets with OS X 10.4 Tiger. Mountain Lion introduces the first big update it’s seen in a long time. Here’s what’s new.

Apple has changed the process of adding a widget to your Dashboard. To begin, click the “+” in the lower left-hand corner, as usual. Now, a grid of available widgets appears instead of the widget bar that used to slide in from the bottom of the screen. Click any widget to install it and return to the Dashboard screen.

Removing widgets is also new. To remove a third-party widget from widget selection screen, either click the “-” in the lower left-hand corner or click and hold on any widget icon in the grid. They’ll start to “jiggle” and those available for deletion will present a small “x” in the upper right-hand corner. Sound familiar?

To remove an active widget from your Dashboard and send it back to the selection screen, either hover over that widget and press Option or hit the “-” while viewing the running widgets.

Continue reading Mountain Lion 101: Dashboard changes

Mountain Lion 101: Dashboard changes originally appeared on TUAW – The Unofficial Apple Weblog on Wed, 25 Jul 2012 14:30:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Mountain Lion 101: Power Nap

Mountain Lion 101 Power Nap

One of OS X Mountain Lion’s lesser-known features is the curiously named Power Nap. It’s roughly analogous to that sleeping mountain lion you see at the top of this post; while he’s catching some z’s in the tree, his brain is constantly aware of what’s going on around him, monitoring sounds and scents that might spell danger or food.

Likewise, Mountain Lion Power Nap will wake up just enough of the system on certain Macs to grab email, notes, reminders and messages, run backups, and download OS X updates. All of this is done without turning on a screen, powering up a fan, or doing anything else that could appear to be “waking” your Mac. It’s enabled for both plugged-in and battery-only setups by checking the appropriate Power Nap box on System Preferences > Energy Saver.

Power Nap in OS X Mountain Lion works only on MacBooks with built-in flash storage — the MacBook Air (2nd generation, meaning 2011 or later) and Retina MacBook Pro, so this isn’t a feature you’re going to see on every Mac. Will we see this extending to more Macs in the future? I certainly hope so; it could theoretically work on any Mac with proper power management circuitry and a boot SSD.

I’ve enabled it on my 2011 MacBook Air and it works quite well. Previously, if I hadn’t awakened the MBA for several days, I could count on having the Mail app spin for quite a while as it downloaded my email. Now when I open my Air’s cover, I can be sure that it’s going to be up to date with most, if not all, of my email.

Image Attribution:

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.0 Generic License.

Continue reading Mountain Lion 101: Power Nap

Mountain Lion 101: Power Nap originally appeared on TUAW – The Unofficial Apple Weblog on Wed, 25 Jul 2012 14:00:00 EST. Please see our terms for use of feeds.

Permalink | Email this | Comments

Apple secures multitouch-related patent from 1995

According to Network World, Apple recently obtained several patents and patent applications from Canadian inventor Timothy R. Pryor that cover the touch-based control of machines including appliances, vehicles and computers.

The most interesting of the bunch is one that describes a “method for providing human input to a computer.” Originally filed in July 2009, this patent describes a data entry device that responds to multitouch input. The data entry device can be used in a variety of applications including video games, aircraft cockpits, or medical analysis.

Another one, Control of Appliances, Kitchen, and Home, describes a home automation system that’s part iPad, part Kinect. It uses both a touch-screen interface and a video-sensing component that can detect your presence and respond to your gestures. Best of all, the system “can ease kitchen and house work, while allowing the user to share time for home functions with Internet shopping, social networking and the like.”

Of course, ownership of these patents doesn’t mean Apple is going to start making a touchscreen-enabled refrigerator-toaster hybrid anytime soon, but it’s still fun to think about the possibilities.

[Via Engadget]

Continue reading Apple secures multitouch-related patent from 1995

Apple secures multitouch-related patent from 1995 originally appeared on TUAW – The Unofficial Apple Weblog on Wed, 25 Jul 2012 13:45:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments