Tutorial: How To Download And Cache Images With The MKNetworkKit iOS Networking Library

Several weeks ago I mentioned the excellent MKNetworkKit – a full featured  iOS networking kit that uses ARC, supplying excellent performance and built to replace ASIHttpRequest now that support of ASIHttpRequest from it’s original creators ended.

One of the best features of MKNetworkKit is the built in image caching.  It’s also one of the more confusing features to use so the creator of MKNetworkKit has created a tutorial demonstrating how to download and cache images from Flickr, and use those images within a custom UITableViewCell.

You can find the tutorial on Mugunth’s site here.

The tutorial also shows how to create neatly fading in thumbnails like in the Apple trailers app.

A useful tutorial if you plan on downloading images within your apps.

©2012 iPhone, iOS 5, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.

DeliciousTwitterTechnoratiFacebookLinkedInEmail


Tutorial: Quickly Create A Jetpack Joyride Like Game With Cocos2D, Box2D, LevelHelper, And SpriteHelper

I’ve mentioned the excellent SpriteHelper and LevelHelper tools in the past that allow you develop iOS games faster by providing tools for easily creating spritesheets, laying out levels, and generating Box2D physics code.

I’ve also mentioned some great tutorials on getting started with LevelHelper and SpriteHelper, and what I really liked about them was the ease of use and the relatively low cost considering how much easier these tools make things.  Since then I’ve become even more impressed with the tools as the developer has been quickly adding in new features.

If you’ve held out on picking up these tools because you were afraid you wouldn’t be able to use them the creator of these tools, Vladu Bogdan has created an epic but easy to follow tutorial where you create a game similar to that of Jetpack Joyride (well at least you use a jetpack!).

Here’s a video of the game created with the tutorial in action:

As you can see there are quite a few things going on with collisions, physics, and animation all done using a minimal amount of code.

You can find the complete tutorial in 4 parts (don’t worry despite the large number of parts it really doesn’t take THAT long to go through just that there are a lot of screenshots).

You can find it here: Pt. 1, Pt. 2, Pt. 3, Pt. 4

You can find SpriteHelper and LevelHelper in the Mac app store.

©2012 iPhone, iOS 5, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.

DeliciousTwitterTechnoratiFacebookLinkedInEmail


Epson launches wireless iOS projection app

Epson has released a slick little iOS app called Epson iProjection (free), which allows iPhones, iPads and iPod touches running iOS 4.2 or later to connect to certain Epson projectors wirelessly.

Epson says the app is ideal for business users who need to travel light yet maintain the capability of presenting with a full-featured projector. The app also should be of use to teachers in the classroom. Epson iProjection is compatible with applications like Microsoft Word, PowerPoint, Excel and Apple’s Keynote, plus JPEG and PNG image files.

As for compatible projectors, you’ll find a full list here.

One disadvantage of the app is the inability to play either animations or video. It might have been nicer if Epson had simply decided to support AirPlay in their projectors, but that would require additional hardware in the projector. Perhaps it is something we’ll see in the future from Epson or others.

Epson launches wireless iOS projection app originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 23 Jan 2012 14:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Daily Mac App: AirBeam

If you have an iPhone and iPad or Mac, you can set up an indoor surveillance system. All you need to get it going is AirBeam, which is software that turns your iPhone into a spy cam and your Mac desktop into a remote viewing station. Setup is simple — just install AirBeam on all your hardware and the software will do the rest.

There’s a universal iOS version for your iPad, iPhone or iPod touch and a desktop version that’ll run on your Mac. The desktop version is the viewer which will let you watch video and listen to audio streamed from your iOS device(s). You’ll need a camera-enabled device if you want video; otherwise, you will only receive audio stream. Once you fire up the software on all your iOS devices, the desktop software will automatically detect their streams. You can watch one stream or multiple streams at the same time. The app keeps the iOS device running so you will have a stream as long as you have battery power.

No worries if you don’t have a Mac, as the iOS version of the software can work as a monitor, too. This handy feature lets you use your iPhone/iPod touch as a camera and your iPad as the monitor (or vice versa). This is perfect if you have a little one napping upstairs and you want to watch him or her while you’re sitting at your desk. The only catch with this setup is that the iOS devices and the Mac must be on the same Wi-Fi network.

AirBeam is more than just a novelty; it’s sophisticated surveillance software that’ll let you set up a motion alarm, an audio alarm and even off-network monitoring so you can monitor your house while you’re out running errands. You’ll have to know your external IP (the one assigned to your modem) and set up port forwarding on the router for this remote viewing to work. AirBeam also has a recording feature that’ll capture up to 30 seconds of video when the software detects motion or sound. You can watch that video remotely using the IP address and port assigned by the AirBeam software. Though you can’t pan the remote iOS device, you can toggle both the LED and the camera on and off.

In my time using AirBeam, the software’s performance was flawless and provided a far better experience than any remote camera I’ve owned. There was zero configuration, and the video quality was excellent. The only surveillance camera feature I missed was movement. Most security cameras include a swiveling mount which lets you control the position of the camera. You lose that control with AirBeam, but you get almost every other surveillance feature at a fraction of the cost of a dedicated camera. You can grab the Mac version of AirBeam for free, while the iOS version will cost you US$3.99.

Daily Mac App: AirBeam originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 23 Jan 2012 13:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Gigabit 802.11ac Wi-Fi may be coming to Apple devices soon

Apple was the first computer manufacturer to popularize Wi-Fi, pioneering the adoption of the early 802.11b standard, then 802.11g, and raising the speed limit with 802.11n in 2007. Now AppleInsider is reporting that the company is expected to start providing support for the “Gigabit Wi-Fi” 802.11ac standard in 2012.

To provide lightning-fast wireless networking, 802.11ac uses up to four times the frequency bandwidth (up to 160 MHz), more antennas (up to eight; existing Macs use up to three), and hyper-efficient data transfers through more sophisticated modulation schemes.

The standard hasn’t yet been approved by the 802.11 Working Group, but things are moving along at a fast clip. Many suppliers, including Apple component manufacturer Broadcom, have announced 802.11ac chipsets. The new equipment not only provides network speeds above 1 Gigabit per second (about three times the speed of existing 802.11n networks), but also offers improved reliability, better power efficiency, and more range.

When the changes come, they’ll most likely first appear in the form of new AirPort base stations and a new Time Capsule, and then start rolling out to new Mac models and mobile devices. Where the new technology will have the biggest impact is in the user of other Apple technologies such as AirPlay, AirPlay Mirroring, and AirDrop.

Now aren’t you glad you didn’t run Ethernet cabling all over your house?

Gigabit 802.11ac Wi-Fi may be coming to Apple devices soon originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 23 Jan 2012 12:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Daily iPhone App: Boogieman Radar

Boogieman Radar is a cute iPhone app for parents whose young children are afraid of a boogieman in their closet or under their bed. For parents, it’s a virtual reality app with an overlay radar that you use to scan a room for boogiemen. For small children, it’s a lifesaver that’ll help them fall asleep.

The app lets you choose a girl guide or a boy guide to help your child scan the room. After you make your selection, the girl or boy then talks your child through the scanning process. The boogieman detector uses the camera to display the room on the screen and overlays a green radar screen with a line scanner. The app also makes the common blip and beep noises you’d expect with a radar. After about 10 seconds of scanning, the guide will announce that the room is safe, and the child can rest easy.

Boogieman Radar is definitely for younger child. My older kids (five to ten-years-old) enjoyed running around with the radar, but they were hoping to find a Boogieman lurking around the corner, not discover the room was safe. My younger kids (two to four-years-old), however, enjoyed scanning and seem reassured when the app announced the room was safe. If you have a young child who’s afraid of this childhood monster, then Boogieman Radar may be a solution that’ll help reassure him or her that nothing is lurking in the dark. It’s available for 99-cents from the iOS App Store.

Daily iPhone App: Boogieman Radar originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 23 Jan 2012 11:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Research: 19 percent of Americans own a tablet

Pew Research Center has found that the number of Americans owning tablets shot up by 10 percent to 19 percent between mid-December and early January, nearly doubling the number of tablet owners during the holiday season. The number of people owning digital-reading devices, which includes tablets, also jumped from 18 percent to 29 percent in the same period.

Pew said that a lot of credit should be given to the lower-priced Kindle Fire and Nook Tablet for getting more tablets into people’s hands, but Apple is certainly no slouch here either. Supplier data shows that Apple could post its best quarter ever when it releases its latest earnings on Tuesday, and more people adopting an iPad over the holidays will certainly add to that.

[Via Electronista]

Research: 19 percent of Americans own a tablet originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 23 Jan 2012 10:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

iBooks Author: An ebook publisher looks at Apple’s textbook creation app

TUAW’s Erica Sadun and I are ebook publishers. Late last year, we started up an ebook publishing company — Sand Dune Books — and were fortunate to hit a publishing home run right off the bat with our book “Talking to Siri.” Since we’re familiar with the tools used to create documents for publishing on both the Amazon Kindle bookstore and iBookstore, we were both curious to see what Apple was going to announce on Thursday. The free creation tool, iBooks Author, wasn’t a surprise to us, and now that I’ve had an opportunity to work with the app I thought I’d pass along my thoughts on how it works and why it may not be the publishing tool for everyone.

Creating a new book

As with Apple’s iWork suite, launching iBooks Author initially displays a set of templates that authors and publishers can use right out of the box to create attractively formatted ebooks. That being said, there are only six templates available. Apple’s emphasis for iBooks Author is to create a vast library of low-cost textbooks, hence the six templates are all textbook-oriented. For authors who are more interested in publishing other types of fiction or non-fiction books, these six templates can be repurposed. After making changes to a template, the custom template can be saved for future use.

Anyone who is familiar with Pages will have few problems working with iBooks Author. The two apps are similar in many ways, with the addition of layout-specific tools. There are widgets — familiar to users of Apple’s ill-fated iWeb — that add special functions to ebooks. Those functions include interactive galleries, sound or video media, Keynote presentations, interactive review quizzes, interactive images, 3D rotatable images, and HTML code.

For each template, there is a very complete set of paragraph, character and list styles that can be applied to text with a click. New styles can be generated and added to the template as well. In addition, there are a number of page layouts available. The layouts include Chapters, Sections, copyright, dedication, and forward pages, blank pages, and 1 through 3 column pages. Placeholders appear on each layout, and with a click you can replace the boilerplate with your own text or images.

Like the iWorks apps, iBooks Author has excellent integration with iTunes, iPhoto, and GarageBand for importing media into your project. Text can be wrapped around the images, and frames, masks, and shadows applied to the images to give them depth on a page.

I love the glossary tools that are built into iBooks Author. It’s easy to highlight a term, define it as a glossary entry, and then write a definition for the term. The term becomes a link that the reader can click on to see the definition.

iBooks Author lets you toggle between portrait and landscape orientations to see what the end product is going to look like on an iPad. There’s also a tethered preview feature that moves the book to your iPad for on-device previewing of text, graphics, and the special features.

Speaking of those special features, the included widgets are all rather handy for textbook authors. The review widget can be used to create useful quizzes. There are four different styles of multiple choice questions, and two where the students need to move a label or image to the appropriate location.

The gallery widget lets authors add galleries of photos pertaining to a subject. In the image below, I’ve created a gallery showing three of the Apple executives. Users can swipe through the images.

One of the other widgets that could end up being quite useful is the HTML widget. I used this extensively to work around some of iWeb’s missing features, and was able to add web forms, online stores, and other items to websites. Can you imagine being able to put an open-book exam into a textbook, allowing students to take the exam through the book with the results going to an online database? Cool.

Authors can also embed fully-functioning Keynote presentations and movies into their books. All of this content can be previewed by opening iBooks 2 on the iPad and then connecting the device to a Mac running iBooks Author. If changes are made to the ebook in iBooks Author, you need to click the preview button in the app one more time to refresh the changes; it doesn’t happen automatically.

iBooks Author follows a familiar format for textbooks, with chapters, sections, and pages. It adds commonly used pages like dedications and copyright info, and when these pages are inserted into an iBook using the tool, it automatically adds them to the table of contents.

If I have one complaint about iBooks Author, it’s that it doesn’t really lend itself too well to collaborations. It would be nice if two authors could both work on a single document at the same time. Instead, the document needs to be “checked out” to the appropriate parties, one at a time.

Publishing

For publishers who are thinking about putting their ebooks into both the iBookstore and the Amazon Kindle Bookstore, iBooks Author throws a monkey wrench into the works. iBooks Author’s book format is specific to iBooks 2; you can’t directly republish your book to work in the Kindle Bookstore.

That’s not really too different from the way things were before iBooks Author came out. For ebooks that Erica and I have published through Sand Dune Books, we wrote the original books in Microsoft Word. When publishing to the Kindle Bookstore, we simply uploaded the file to Kindle Direct Publishing and the .docx file was converted to work in the Kindle Reader. To publish to the iBookstore, we imported the Word document into Pages, made formatting changes where necessary, and then exported the book as an EPUB. Some additional work was required in Calibre to get the book into shape for the iBookstore.

I won’t go through the steps required to get a book published on the Kindle Bookstore, but note that it is much easier than getting a book into the iBookstore. For that, you need to have an iBookstore seller account, have a copy of iTunes Producer to take the iTunes Store package created by iBooks Author and publish it into the iBookstore, and have an active contract. You also need to have a bank account set up to receive proceeds through electronic payment, an ISBN for each title, and a US tax ID.

Apple is now requiring authors to create a sample book that customers can download and view for free. This is a new requirement that’s part of the publishing process. If you decide that you don’t want to publish your book through the iBookstore, you can export the book in iBooks or PDF format for self-distribution.

As you have probably already heard, Apple surprised authors in the iBooks Author License Agreement. The wording that caught everyone off guard was in section 2 of the agreement:

B. Distribution of your Work. As a condition of this License and provided you are in compliance with its terms, your Work may be distributed as follows:
(i) if your Work is provided for free (at no charge), you may distribute the Work by any available means;
(ii) if your Work is provided for a fee (including as part of any subscription-based product or service), you may only distribute the Work through Apple and such distribution is subject to the following limitations and conditions: (a) you will be required to enter into a separate written agreement with Apple (or an Apple affiliate or subsidiary) before any commercial distribution of your Work may take place; and (b) Apple may determine for any reason and in its sole discretion not to select your Work for distribution.

It appears from reading this that if you wish to sell your iBooks Author-created tome through the iBookstore, then you cannot sell it through any other bookstore — including the Amazon Kindle Bookstore. Quite a few web notables have decried this, but Amazon is also pulling stunts to try to keep publishers from putting their work into other bookstores. A good example of this is the Kindle Select program, in which authors who agree to keep their works specific to the Kindle bookstore can have their books distributed through the Kindle Lending Library program. With this program, Amazon Prime customers can borrow the books at no cost, and the author still gets paid a token amount (in December, 2011, each borrow was worth $1.70).

So what’s an author or publisher to do if he or she wants to have distribution in both the Kindle Bookstore and the iBookstore? Easy — you just don’t use iBooks Author to create the book. This means that your iBooks won’t be able to have many of the nifty features that iBooks Author allows you to use, but you will be able to distribute your work for a fee in any ebook store.

I think a lot of non-authors and publishers are whining about the iBooks Author License Agreement, when they really don’t understand that it’s just saying that you can’t sell works created with iBooks Author in any bookstore. You can create ebooks using other methods and sell them anywhere.

Conclusion

Let me reiterate one key point: iBooks Author is designed for creating textbooks. If you’re thinking about using it for other types of books, you can — but understand that this app may not necessarily be the tool you’re looking for if you want to create and sell books on all ebook platforms.

iBooks Author does a great job at what it’s designed for, and I think we’ll see a lot of incredibly interactive books hitting the iBookstore in the near future. Is it perfect? No. But for a first release of a new app, it’s pretty darned close.

iBooks Author: An ebook publisher looks at Apple’s textbook creation app originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 23 Jan 2012 09:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Daily iPad App: Puzzlejuice

Puzzlejuice is an inventive new game from the creators of Solipskier. Mike and Greg have created a hardcore puzzle game that spans the genre and lets you sort it all out.

The basic mechanic of Puzzlejuice is more or less that of Tetris. Blocks fall from the top of the screen which you must arrange into complete lines. Once you do, however, they don’t disappear. Instead, the blocks become a row of letters, which you must arrange to complete words (similar to the great Spelltower) for points.

Tapping on colored blocks in matched rows of three or more turns them into letters too, and depending on which mode you’re in, matched words will also explode other blocks, and powerups may even drop in the blocks you’re matching. Acheivements like spelling a word of a certain length also keep you on your toes, as does powerup management. If that sounds confusing, you’re right, especially since it all happens at once.

I imagine Mike and Greg wanted to create a mild panic in their players. Puzzlejuice is not for the faint of puzzle heart. Even the game’s Zen mode is called “Zen mode Extreme,” because you can only play it for the highest score in just 90 seconds. The game’s tone even pushes that line a little bit, prompting you to increase the difficulty and then rating your performance as “average.”

If that appeals to you (and as a puzzle game aficionado, I sure like it), go and find it. Puzzlejuice is available on the App Store in a universal version for just 99 cents. It’s a solid game, but bring your brain, because you’ll need it.

Daily iPad App: Puzzlejuice originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 23 Jan 2012 08:05:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Daily iPad App: UpNext 3D delivers free maps

I love maps. I’ve had printed atlases for years, I have globes all over the house, and I had some of the early mapping applications for the Mac like DeLorme Street Atlas. Sadly, DeLorme abandoned the Mac years ago.

Suffice it to say that any new mapping application will get my attention right away. Let me direct your attention to UpNext HD Maps. It’s a free app for the iPad that gives you searchable, zoomable maps with 50 of the cities rendered in 3D, and 23 with extremely enhanced details.

You can click on a building and see what businesses are inside. You can search for recreation, dining, shopping and more. The app is connected to Yelp so you can often find reviews of places that might interest you. There is also a deal finder which will show you any discounts at nearby locations.

The app requires an Internet connection, but can pre-cache recent places you’ve been when you’re offline. In terms of performance the app was pretty peppy on a Wi-Fi connection, but frankly it would be very slow on most 3G connections. The data needed to render buildings realistically in 3D is not small.

You can find maps of everywhere in the United States, but you will only get the detailed 3D renderings in Atlanta, Austin, Boston, Chicago, Cincinnati, Cleveland, Dallas, Denver, Detroit, Fort Lauderdale, Honolulu, Kansas City, Las Vegas, Los Angeles, Miami, Minneapolis, New York, Philadelphia, San Francisco, Seattle, St. Paul, and Washington DC.

I did have a few crashes when using the app, and I noticed that once you venture outside the center city area, you quickly lose the 3D display. There are big gaps in information, so don’t expect detailed info everywhere you click. Even so, this is a worthwhile app to play around with, and the price is exactly right. I’m hopeful that the app will get more stable, add more information, and include more cities.

The app works with any iPad and requires IOS 4.0 or later. It’s a 16 MB download.

I’ve grabbed some screen shots which you can browse below.

Gallery: UpNext 3D Maps

Daily iPad App: UpNext 3D delivers free maps originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 23 Jan 2012 07:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

iPad textbooks help students’ math scores increase by 20%

Those who watched the educational event Apple held in New York last week will know that they are serious about improving the education of children. Now we have numbers to prove this.

Just days after the educational event, publisher Houghton Mifflin Harcourt announced the results of its “HMC Fuse: Algebra I” pilot program at Ameila Earhart Middle School in Riverside, California.  The program was the first in the world to base the entire curriculum on the algebra application developed exclusively for Apple’s iPad.

What really makes this program amazing is the fact that during the pilot program the application actually helped more than 78 percent of students score “Proficient” or “Advanced” on the spring 2011 California Standards Test, compare this to the 59% of the peers who didn’t use this program but traditional textbooks and the numbers become pretty cool.

For those interested in reading all the results can find them here. Other schools and students can download the “HMH Fuse Shell” applications available for free on the iPad App Store, with curriculums available as in-app purchases within the applications.

 

Best Resources In iOS Development – January 23, 2012

Welcome back to another edition of the best resources in iOS development listing the last two weeks of resources on this site in order of popularity.

This week’s resources feature a library for making beautiful modal panels within your iOS apps very quickly, a guide on disabling ARC on specific files, a Path 2 inspired UITableView replacement, and more.

Here are the resources:

1. Open Source: Library For Elegantly Styled Modal Panels In iOS Apps – A great library for easily customizable modal panels that look great.

2. Easily Get Non-ARC Enabled Open Source Libraries Working In ARC Enabled Projects – A quick tutorial showing how to disable arc on specific files within Xcode.

3. Open Source: UITableview Replacement With Information Overlays – Inspired By The Path 2 App – A nicely done UITableView replacement that adds information overlays while scrolling.

4. Tool: SOAP Based Web Services Made Easy On The iOS Platform – A web service that automatically takes your wsdl definition for a SOAP web service, and turns it into a working Xcode project.

5. Handy Cheat Sheet For Using Objective-C Blocks (Closures) – A nice cheat sheet to have handy if you are still learning how to use Objective-C blocks.

6. iBooks Author App: Quick Summary Of Everything You Need To Know! – A quick feature summary of Apple’s new iBooks Author app.

7. Open Source: Library For Easy iCloud Image And Document Transfers With A Blocks Based Syntax – A library providing a very simple and clean syntax for easy image and document uploading and downloading from iCloud.

8. Open Source: Library For Creating Framed, Shadowed, Stacked Images Automatically For A Real Photo Look – A library that uses core graphics to make images look like real photos.

9. Tool: Full Javascript Debugger For Phonegap Apps And Web Pages – A very nice tool providing the full javascript debugger within iOS simulator.

10. Open Source Apps List: Hacker News Client, iPhone Theft Tracker, Barcode Scanner And More Added – Feature covering some new additions to the open source iOS apps list.

11. Example Source Code: A Cocos2D Color Picker Extension Designed Specifically For The iPad – A great color picker extension for use in Cocos2D apps built for the iPad and touch interaction.

12. Open Source: An OpenGL ES Powered Game Engine Module For Appcelerator Titanium Mobile – A new module for Appcelerator titanium created specifically for game graphics.

13. Open Source iOS Control: UILabel Replacement With Individually Clickable Words – A handy library providing a UILabel replacement with selectable words.

Thanks for reading, please bookmark and share this post!

©2012 iPhone, iOS 5, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.

DeliciousTwitterTechnoratiFacebookLinkedInEmail