Best Resources In iOS Development – October 3rd 2011

This week’s list of resources includes an easy to use XML parser, Cocos2D special effects, a tutorial on building your own custom UIControl’s and more.

The iPhone 5 event has officially been slated for Oct. 4th, and it will be interesting to see if any unexpected features are added.

Here are the resources listed in order of popularity:

1. Open Source: New XML Parsing Library With A Highly Readable Easy To Maintain Syntax – An interesting new XML parsing library with an easy to use, concise and readable syntax making extensive use of blocks.

2. Example: Create A Lightning Effect In Cocos2D Using OpenGL ES – A source code example showing how to create a cool lighting-like effect in Cocos2D with definable strike points.

3. Tutorial: How To Extend UIControl And Build Your Own Custom Range Slider Component – A tutorial showing how to create your own custom UIControls by building a slider with start and end points.

4. Open Source iOS Library For Adding Basic Touch Handling To A UIView Instantly – A very useful library allowing you to add touch handling to a UIView automatically (touch up, touch down, double tap, and two finger taps).

5. How To Get 10,000,000+ Downloads In The iOS App Store (For Real!) – A very insightfiul interview where the founders of two companies that have combined for over 10 million downloads in the app store discuss their success story, and how they were able to gain a competitive edge in the app store.

6. Tutorials: Core Animation iOS Game Development Gems – A set of tutorials demonstrating how to solve specific issues that can arise when developing games with Core Animation.

7. Open Source: Multipurpose iOS Developer Library With Many Utility Features – A massively useful library with a multitude of iOS SDK extensions, Core Data helpers, macros and more.

8. Example: Using The Facebook Open Graph Beta API To Add To A User’s Wishlist On iOS – An example project demonstrating the use of Facebook’s Open Graph API.

9. Open Source: Customizable iOS Calendar Component With Landscape Orientation Support – A calendar component with an easily changeable look, and perhaps the only open source calendar component available with landscape support.

Thanks for reading, please share this post!

©2011 iPhone, iOS 4, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.

DeliciousTwitterTechnoratiFacebookLinkedInEmail


Segment Control in TabBar Application in iPhone

In this application we will see how to change the background color using segmentControl, in TabBar Application . So let see how it will worked.

Step 1: Open the Xcode, Create a new project using TabBar Base application. Give the application “TabBarWithSegmentControl”.

Step 2: Xcode automatically creates the directory structure and adds essential frameworks to it. You can explore the directory structure to check out the content of the directory.

Step 3: Expand classes and notice Interface Builder created the FirstViewController and SecondViewController class for you. Expand Resources and notice the template generated a separate nib, FirstView.xib and SecondView.xib for the TabBarWithSegmentControl application.

Step 4: Open the FirstViewController.h file and make the following changes:

#import <UIKit/UIKit.h>
@interface FirstViewController : UIViewController {
IBOutlet UISegmentedControl *segmentControl;
IBOutlet UIView *Firstview1;
IBOutlet UIView *Secondview2;
}
–(IBAction)segmentAction:(id)sender;
@end

Step 5: Double click FirstView.xib file and open it to the Interface Builder . First drag the Segmented Control from the library and place it to the view window. Select the Segmented control and bring up Connection Inspector and connect Touch Up Inside to the File Owner icon and select segmentAction: , connect File’s Owner icon to the Segmented Control and select segmentControl. Now drag the View two times from the library and place it to the Interface window. Drag the label from the library and place it to the View window and select the view and bring up Attribute Inspector , and change the background color and text into “FirstView”. Do it once more time for another view and change text into “SecondView”. Connect File’s owner icon to the View and select Firstview1. Select File’s Owner icon to the another view and select Secondview2.

Step 6: Double click the MainWindow.xib file and open it to the Interface Builder. Select the TabBar Controller from the interface window and select the First tab and bring up Attribute Inspector, change the Bar Item Title “FirstView”. Do it same for the Second tab and change the tab name “SecondView”. Now save the .xib file, close it and go back to the Xcode.

Step 7: Open the FirstView.m file and make the following changes:

#import "FirstViewController.h"
@implementation FirstViewController
– (IBAction) segmentAction:(id)sender
{
UISegmentedControl* control = sender ;
if( [control selectedSegmentIndex] == 0 )
{
[ self.view addSubview:Firstview1] ;
}
if( [control selectedSegmentIndex] == 1 )
{
[ self.view addSubview:Secondview2] ;
}
}
– (void)viewDidLoad
{
Firstview1.frame = CGRectMake(0, 42, 320, 420);
Secondview2.frame = CGRectMake(0, 42, 320, 420);
[super viewDidLoad];
// the segment control…
[segmentControl addTarget:self action:@selector(segmentAction:)
forControlEvents:UIControlEventValueChanged];
segmentControl.selectedSegmentIndex = 0 ;
}
– (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
– (void)didReceiveMemoryWarning
{
// Releases the view if it doesn’t have a superview.
[super didReceiveMemoryWarning];
// Release any cached data, images, etc. that aren’t in use.
}
– (void)viewDidUnload
{
[super viewDidUnload];
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
}
– (void)dealloc
{
[super dealloc];
}
@end

Step 8: Now compile and run the application on the Simulator.

You can Download SourceCode from here TabBar With Segment Control

The Nuts and Bolts of Photo Management

This is advertising article.

layout png

Incorporating high quality images into your web design can make a substantial difference to the effectiveness and conversion rates of a website. Backlit screens are a precious resource that you just can’t afford to waste. Images also set the tone and mood of your website and their quality, or lack of it, unconsciously tells a viewer a great deal about the company the website is representing. When properly handled images can also be effective SEO tools.

read more

iPhone 5 or iPhone 4S: Two Possibilities for Apple Announcement Tomorrow

iPhone 4S or iPhone 5?

There has been no shortage of news, opinions, or rumors circulating about the iPhone 5 (or iPhone 4S, or whatever the next iPhone will be called). Yet despite all the noise about the next iPhone, most people have no idea what Apple will be announcing tomorrow.

Apple has kept the details of tomorrow’s announcement secret, but in a nutshell there are two main possibilities:

  1. iPhone 5: Apple announces a groundbreaking new iPhone with major innovations. The hardware looks much different, and there are many needed improvements, plus impressive new features that no one anticipated.
  2. iPhone 4S: Another possibility is that the next iPhone could be not-so-next-generation, and simply add some improvements such as a better processor, more storage, and only slight hardware modifications. The iPhone 4S would be to the iPhone 4 what the iPhone 3GS was to the iPhone 3G.

I consider the second scenario to be more likely, though I welcome the first.

A Third Possibility

It is also possible that Apple chooses a middle-ground between the above two scenarios and introduces a modestly improved iPhone — one that is faster and more spacious, has a similar hardware design, but has one major, game-changing feature that will set it apart from other smartphones.

It’s possible the next iPhone will be called something other than iPhone 5 or iPhone 4S, but I consider the above situations to be the most likely scenarios for the iPhone announcement tomorrow.

Some possible features to be announced tomorrow:

  • 4G network-compatibility
  • Improved camera, more megapixels
  • Faster processor
  • More storage space
  • 1080P video recording
  • Sprint availability
  • A larger screen
  • Thinner body

What do you think Apple will announce tomorrow? Do you plan to buy the next iPhone?

iPhone 5 or iPhone 4S: Two Possibilities for Apple Announcement Tomorrow is a post from Apple iPhone Review.


WSJ: Sprint to take risky gamble on iPhone

Less than a day before the expected announcement of the new iPhones, the Wall Street Journal reports that Sprint plans to ‘bet the company’ on the iPhone and will purchase at least 30.5 million iPhones over the next four years, which amounts to about US$20 billion.

Sprint would subsidize each phone for about $500. The move isn’t expected to generate any sort of profit until 2014. The WSJ’s source tells the paper that “the projected hit to the company’s operating income is ‘staggering,’ ” but it’s expected to halt the company’s sales losses to Verizon and AT&T as Sprint’s customers seek out the iPhone.

By this time, the iPhone going to the Sprint is a rumor that appears to have the Magic 8-Ball pointing to “yes.” In mid-September, a Sprint Nextel associate told TUAW that the carrier began briefing its employees for an October launch, and Sprint restricted its mobile-tethering plans to 5 GB as of Oct. 2.

Tune into TUAW’s coverage of Apple’s iPhone event tomorrow with a liveblog hosted by the lovely Erica Sadun starting at 9:45 a.m. PDT (12:45 p.m. EDT.)

WSJ: Sprint to take risky gamble on iPhone originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 03 Oct 2011 16:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

iPhone Assistant called a "world-changing event" by Siri co-founder

One of the expected announcements in tomorrow’s “Let’s Talk iPhone” event revolves around the iPhone Assistant, a powerful voice recognition and artificial intelligence tool that will enable real-time searching and control of iPhones. The tool, based on technology acquired in Apple’s 2010 purchase of Siri, is so powerful that Siri co-founder Norman Winarsky is referring to its release as a “world-changing event.”

Winarsky is no longer with Siri, so he’s offering pure speculation based on his prior knowledge of the company’s technology. He believes that inclusion of the Siri artificial intelligence capability might explain why an iPhone announcement wasn’t made until October (rather than the usual summer timeframe), noting that “AI takes a lot of computing power.” Rumors floating around the web note that Assistant may only run on a next-generation iPhone due to the need for more RAM and a faster processor.

In an interview with iPodNN News, Winarsky waxed enthusiastic about the capabilities of Assistant, noting that “If the rumors are true, Apple will enable millions upon millions of people to interact with machines with natural language … We’re talking another technology revolution. A new computing paradigm shift.”

iPhone Assistant called a “world-changing event” by Siri co-founder originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 03 Oct 2011 15:45:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Sony Ericsson CEO: we should have taken the iPhone more seriously

Sony Ericsson CEO Bert Nordberg talked with the Wall Street Journal about the company’s mobile phone strategy. During the interview, the CEO confirmed that Sony Ericsson should have taken the iPhone more seriously when it launched.

Nordberg doesn’t elaborate on this comment, but it likely refers to the company’s slow transition from a feature phone manufacturer with Symbian as its primary OS to a smartphone manufacturer that’s placing all its eggs in the Android basket.

This move cost Sony Ericsson. Instead of being the leader of the pack, Sony Ericsson is losing precious market share. According to Gartner, Sony Ericsson had a 4.3% share of the global mobile phone market in Q3 2009 and dropped to a lowly 1.7% in the second quarter of 2011.

During that same period, Apple grew from an insignificant level in 2009 to 4.6% in Q2 2011. This is an astounding jump for a company that sells only the iPhone and not an entire lineup of smartphones and feature phones.

Sony Ericsson CEO: we should have taken the iPhone more seriously originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 03 Oct 2011 15:30:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Run Photoshop on an iPad with VMWare’s AppBlast

VMWare is hosting its VMWorld 2011 event in Copenhagen later on this month, but the company’s blog has posted a preview of what it’ll be revealing. And one of the projects in particular is quite interesting: Project AppBlast purports to turn non-HTML based applications (like those currently running on your Mac) into HTML 5 apps. If this works as described, you could essentially run any or all of your applications on any device with a browser on it — which of course would include your iPad and iPhone.

You can see a screenshot of the service above. VMWare promises it will provide access to all of your apps from the cloud, which is obviously an intriguing proposition. We’ll have to see exactly how it all works once it’s all revealed. VMWorld 2011 starts up on October 18.

Run Photoshop on an iPad with VMWare’s AppBlast originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 03 Oct 2011 15:15:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Daily Mac App: Clean

Clean for Mac

Let’s face it, cleaning your desktop can be a right chore. Clean makes it easy by automating the process for those who simply can’t face it.

Some of us are more prone to desktop clutter than others. I have seen some horrors in my time, desktops were you simply can’t see the wallpaper for the side-to-side mess of icons. How does anyone find anything in that mess?

Like other cleaning tasks, sometimes you simply can’t face weeding through all the files, separating important from rubbish and that’s where Clean comes in. It’s a tiny app that you can either set up to clear out your desktop on a daily, weekly or monthly rotation, or fire it up manually when it all gets too much.

Clean will move all the files on your desktop to a user-specified folder and will organize them by day or month. You can tell it to ignore files with labels, which means you can keep files on your desktop that you really want to stay by just applying a label to them in Finder.

By moving, not trashing your files, Clean gives you the opportunity to evaluate whether you really need those files. If you haven’t accessed them for a couple of months for instance, perhaps it’s time to trash them and reclaim some hard disk space.

Yes you can do all this manually, and no Clean doesn’t do anything revolutionary, but it’s a free app that gets the job done for those that have a mess of files on their desktop and can’t face sorting them manually.

Daily Mac App: Clean originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 03 Oct 2011 15:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Daily Update for October 3, 2011

It’s the TUAW Daily Update, your source for Apple news in a convenient audio format. You’ll get all the top Apple stories of the day in three to five minutes, which is perfect for a quick review of what’s happening in the Apple world.

You can listen to today’s Apple stories by clicking the inline player (requires Flash) or the non-Flash link below. To subscribe to the podcast for listening through iTunes, click here.

No Flash? Click here to listen.

Daily Update for October 3, 2011 originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 03 Oct 2011 14:45:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

DevChat: Talking with Juuso Salonen about Radio Silence

Sometimes you want to learn more about the story behind an app. TUAW decided to test out a new series idea, which we call DevChat. In this series, we talk directly to app developers to explore an application in greater depth. We try to learn why an application was built, what motivated its development, and how it works.

Today, TUAW talks to Juuso Salonen, the developer of Radio Silence. Radio Silence is an OS X application that allows you to control which applications are allowed to phone home with personal information. You may be surprised to learn how many apps do that, and why.

Salonen explains who the worst offenders are (think Adobe), and how his app helps fill an important niche in personal security.

You can also download an MP3 copy of this DevChat directly.

DevChat: Talking with Juuso Salonen about Radio Silence originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 03 Oct 2011 14:30:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

TUAW predicts a short iPhone wait

Over at Business Insider, Dylan Love asks, how long will we have to wait to buy the new iPhone? He points out that the first iPhone was announced in January 2007, and shipped 171 days later, while the iPhone 3G 32 days after announcement. Additionally the iPhone 3GS 11 days after its announcement, and the iPhone 4, 14 days after.

Numerous Apple retail employees have tipped TUAW, all repeating the same information: employee leave requests have been blacked out from Oct 9th through the 16th due to product launch.

Based on past sale patterns, TUAW guesses that the employees will be trained during the week and that Apple will offer in-store pickup on the weekend of the 14th-16th. Of course, Apple may offer the unit sooner. Online sales, too, may begin immediately with shipping dates following.

Regardless of the actual mechanisms of sale, TUAW believes the 9-16th blackout dates are probably accurate.

TUAW predicts a short iPhone wait originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 03 Oct 2011 14:15:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Hong Kong Apple Store express counter in additional stores

Apple recently opened an Apple Store in Hong Kong to huge crowds and much enthusiasm. The flagship store boasts 15,000 sq ft of space and an impressive and typically Apple glass staircase. It’s also got an Express Purchase Counter, a unique feature that may appear in other retail locations soon, according to ifoAppleStore.

The Express Purchase Counter is for customers who walk in knowing exactly what they want. For example, the shopper who wants a Bluetooth keyboard can enter the store, grab the keyboard, proceed to the Express Purchase counter to complete the transaction and then go on their way. It’s wise of Apple to recognize the difference between customers who would benefit from a chat with an employee vs. this “grab and go” type of shopper.

ifoAppleStore reports that the Express Purchase Counter could appear in other Apple Stores, should it be deemed successful in Hong Kong (we don’t know how Apple retail will define “success” in this instance). With the holiday shopping season approaching, such a rapid check-out option makes sense. Let us know if you see one in your local Apple Store.

Hong Kong Apple Store express counter in additional stores originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 03 Oct 2011 14:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Join the TUAW team tomorrow for the iPhone event liveblog

All of us at TUAW are giddy with anticipation about what tomorrow’s “Let’s Talk iPhone” event will bring. We would love to have you be our guest for a special meta-liveblog of the event, with the latest breaking news and commentary from our staff of bloggers.

The liveblog will begin about fifteen minutes before the event kickoff at 9:45 AM PDT (12:45 PM EDT), with our very own Erica Sadun taking the helm. Be sure to bookmark the liveblog page for tomorrow’s event. There will not be a chat room this time, but rest assured that we’ll be giving you all the news and our take on it.

The liveblog will be followed by our usual detailed coverage of the announcements, complete with analysis of the features, oddities, availability, pricing, and competition. It’s going to be an exciting day, and the TUAW team is ready to bring you the best coverage on the web!

Join the TUAW team tomorrow for the iPhone event liveblog originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 03 Oct 2011 13:45:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Tim Cook’s "time to shine" with new iPhone announcement

Tomorrow is a big day for Apple fans around the world, it’s also a big day for Apple CEO Tim Cook. Cook is expected to introduce the next generation iPhone. Apple’s first high-profile announcement since WWDC and Cook’s first as CEO.

Cook is highly regarded as an expert in operations and supply chain management. He is given credit as the man who secured an ample and inexpensive supply of internal components for the iPod, iPhone and iPad.

Tomorrow will be a test of whether he can move beyond that role and deliver a dynamic and exciting keynote. Cook will likely be joined by Phil Schiller and Scott Forstall, but Steve Jobs is not expected to make an appearance. Nervousness aside, Cook should do a fine job introducing one of the most highly anticipated products of 2011.

All of us at TUAW will be following the keynote and meta live-blogging it. Won’t you join us?

Tim Cook’s “time to shine” with new iPhone announcement originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 03 Oct 2011 13:30:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments