Unofficial Dominion on iOS now, official version later

I’m a big fan of Ascension, the iOS app that replicates the real-life deck-building card game of the same name. But when it comes to more self-contained deck-building card games where you build a deck as you play, as opposed to collectible card games like Magic: The Gathering, there’s really one big name out there, and it’s Donald X. Vaccarino’s game Dominion. It’s a great game that like Magic: The Gathering has been begging for a solid iPad/iOS port ever since Apple’s platform first took off.

That hope is coming true in more ways than one. There’s already a version of Dominion available on iOS for US$1.99, but apparently it’s unofficial yet (temporarily) approved. It may be strange to see a paid app that’s unofficial and actually uses the art and IP of the game, but apparently Rio Grande is cool with that, because it has an official version coming out as soon as “a few weeks” from now. It’s granted temporary licenses to developers to release their own versions of the game as long as those versions are down and gone by the time the official release arrives.

Personally I’ll probably wait for the official version, especially since it sounds like the wait isn’t that long. But it’s good to hear that one of the best card games around is coming in virtual form to Apple’s tablet. As for Magic: The Gathering? Wizards of the Coast, the ball’s in your court. Wizards has said it’s releasing a reference app for Magic on iOS, but there are still no plans for an official version of the game itself. Meanwhile, Kard Combat is it.

Unofficial Dominion on iOS now, official version later originally appeared on TUAW – The Unofficial Apple Weblog on Wed, 25 Jan 2012 04:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

58 Malware threats launched at Macs from Q2 to Q4 in 2011

There used to be a saying that Macs couldn’t get viruses, well as Apple and Macs gain in popularity unfortunately so does the Malware threats launched directly at Macs. From April 2011 to December 2011 there were 58 different malware attacks aimed at Macs.

When Security lab F-Secure released its 2011 Mac Malware Summary last week, they noted that in 2011 alone Apple’s platform faced “several dozen” new malware attacks.  The report noted that this number is still relatively small compared to the attacks on windows during the same time period.

As you can see on the graph below the most new threats were detected in June when the number reached 12 new malware threats.

Mac Malware
Source: F-Secure
Most readers might remember the last big threat which emerged under the name MACDefender anti-virus software. Apple eventually dealt with the issue with a security update. Apple also took precautions and added a daily malware to Mac OS X.
What is interesting is that while Android seems to be more prone to attacks lately, the attacks on iOS still remained relatively small.

Open Source: Slick Control For iOS That Makes An Interesting Progress Indicator

Some time ago I mentioned the excellent F3BarGauge component which is great for creating customizable bar gauge components.

Brad Benson the same developer of that component has created a control that uses core animation to create a swirling indicator and you can adjust the speed, another excellent component which can be used as an interesting progress indicator, or alert indicator – or both.

You can see the control in this video:

You can download  the control and view usage instructions at the Github repository here.

Not only can the speed, and color be changed like in the video, but you can also adjust the number of segments, and the segment shape.

A very interesting alternative to the typical progress indicator.

 

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

.

DeliciousTwitterTechnoratiFacebookLinkedInEmail


Photos Application in iPhone

In this application we will see how to multiple photos select from the photo gallery and we can display, rotate and swipe this photo in the view. So let see how it will worked.

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

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 ViewController class for you. Expand Resources and notice the template generated a separate nib, PhotosAppViewController.xib for the ImageClick application.

Step 4: We need to add the framework MobileCoreServices.framework

Step 5: Open the PhotosAppViewController.h file and make the following changes:

#import <UIKit/UIKit.h>
#import <MobileCoreServices/MobileCoreServices.h>
@interface PhotosAppViewController : UIViewController <UINavigationControllerDelegate,
UIImagePickerControllerDelegate, UIPopoverControllerDelegate, UIGestureRecognizerDelegate>
{
CGFloat Scale;
CGFloat XPosition;
CGFloat YPosition;
}
–(IBAction)Photosadd:(id)sender;
@end

Step 6: Double click the PhotosAppViewController.xib file and open it to the interface Builder. Drag the Toolbar and Bar Button Item from the library and place it to the View window. Now select the button and bring up Connection Inspector and connect Touch Up Inside to the File’s Owner icon and select Photosadd: method and drag the label from library and place it to the view window and bring up Attribute Inspector change the text “Swipe Photos Here ” . Now Save the .xib file, close it and go back to the Xcode.

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

#import "PhotosAppViewController.h"
@implementation PhotosAppViewController
– (void)dealloc
{
[super dealloc];
}
– (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.
}
–(IBAction)Photosadd:(id)sender {
UIImagePickerController *controller = [[UIImagePickerController alloc] init];
[controller setMediaTypes:[NSArray arrayWithObject:kUTTypeImage]];
[controller setDelegate:self];
UIPopoverController *popover = [[UIPopoverController alloc]
initWithContentViewController:controller];
[popover setDelegate:self];
[popover presentPopoverFromBarButtonItem:sender
permittedArrowDirections:UIPopoverArrowDirectionUp animated:YES];
}
– (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:
(NSDictionary *)info {
UIImage *image = [info objectForKey:@"UIImagePickerControllerOriginalImage"];
UIView *holderView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, image.size.width,
image.size.height)];
UIImageView *imageview = [[UIImageView alloc] initWithFrame:[holderView frame]];
[imageview setImage:image];
[holderView addSubview:imageview];
UIPinchGestureRecognizer *pinchRecognizer = [[UIPinchGestureRecognizer alloc]
initWithTarget:self action:@selector(scale:)];
[pinchRecognizer setDelegate:self];
[holderView addGestureRecognizer:pinchRecognizer];
UIRotationGestureRecognizer *rotationRecognizer = [[UIRotationGestureRecognizer alloc]
initWithTarget:self action:@selector(rotate:)];
[rotationRecognizer setDelegate:self];
[holderView addGestureRecognizer:rotationRecognizer];
UIPanGestureRecognizer *panRecognizer = [[UIPanGestureRecognizer alloc]
initWithTarget:self action:@selector(move:)];
[panRecognizer setMinimumNumberOfTouches:1];
[panRecognizer setMaximumNumberOfTouches:1];
[panRecognizer setDelegate:self];
[holderView addGestureRecognizer:panRecognizer];
UITapGestureRecognizer *tapRecognizer = [[UITapGestureRecognizer alloc]
initWithTarget:self action:@selector(tapped:)];
[tapRecognizer setNumberOfTapsRequired:1];
[tapRecognizer setDelegate:self];
[holderView addGestureRecognizer:tapRecognizer];
[self.view addSubview:holderView];
}
–(void)scale:(id)sender {
[self.view bringSubviewToFront:[(UIPinchGestureRecognizer*)sender view]];
if([(UIPinchGestureRecognizer*)sender state] == UIGestureRecognizerStateEnded) {
Scale = 1.0;
return;
}
CGFloat scale = 1.0 – (Scale – [(UIPinchGestureRecognizer*)sender scale]);
CGAffineTransform currentTransform = [(UIPinchGestureRecognizer*)sender
view].transform;
CGAffineTransform newTransform = CGAffineTransformScale(currentTransform, scale,
scale);
[[(UIPinchGestureRecognizer*)sender view] setTransform:newTransform];
Scale = [(UIPinchGestureRecognizer*)sender scale];
}
–(void)move:(id)sender {
[[[(UITapGestureRecognizer*)sender view] layer] removeAllAnimations];
[self.view bringSubviewToFront:[(UIPanGestureRecognizer*)sender view]];
CGPoint translatedPoint = [(UIPanGestureRecognizer*)sender translationInView:self.view];
if([(UIPanGestureRecognizer*)sender state] == UIGestureRecognizerStateBegan) {
XPosition = [[sender view] center].x;
YPosition = [[sender view] center].y;
}
translatedPoint = CGPointMake(XPosition+translatedPoint.x, YPosition+translatedPoint.y);
[[sender view] setCenter:translatedPoint];
if([(UIPanGestureRecognizer*)sender state] == UIGestureRecognizerStateEnded) {
CGFloat finalX = translatedPoint.x + (.35*[(UIPanGestureRecognizer*)sender
velocityInView:self.view].x);
CGFloat finalY = translatedPoint.y + (.35*[(UIPanGestureRecognizer*)sender
velocityInView:self.view].y);
if(UIDeviceOrientationIsPortrait([[UIDevice currentDevice] orientation])) {
if(finalX < 0) {
finalX = 0;
}
else if(finalX > 768) {
finalX = 768;
}
if(finalY < 0) {
finalY = 0;
}
else if(finalY > 1024) {
finalY = 1024;
}
}
else {
if(finalX < 0) {
finalX = 0;
}
else if(finalX > 1024) {
finalX = 768;
}
if(finalY < 0) {
finalY = 0;
}
else if(finalY > 768) {
finalY = 1024;
}
}
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:.35];
[UIView setAnimationCurve:UIViewAnimationCurveEaseOut];
[[sender view] setCenter:CGPointMake(finalX, finalY)];
[UIView commitAnimations];
}
}
–(void)tapped:(id)sender {
[[[(UITapGestureRecognizer*)sender view] layer] removeAllAnimations];
}
– (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer
shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer
*)otherGestureRecognizer {
return ![gestureRecognizer isKindOfClass:[UIPanGestureRecognizer class]];
}
#pragma mark – View lifecycle
/*
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
– (void)viewDidLoad
{
[super viewDidLoad];
}
*/

– (void)viewDidUnload
{
[super viewDidUnload];
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
}
– (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return YES;
}
@end

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

Coffescript. Getting started

CoffeeScript is a programming language that transcompiles to JavaScript. The language adds syntactic sugar inspired by Ruby, Python and Haskell to enhance JavaScript’s brevity and readability, as well as adding more sophisticated features like array comprehension and pattern matching. CoffeeScript compiles predictably to JavaScript and programs can be written with less code (typically 1/3 fewer lines) with no effect on runtime performance. Let me introduce some cool useful tutorials.

read more

Daily Update for January 24, 2012

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 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 daily listening through iTunes, click here.

No Flash? Click here to listen.

Daily Update for January 24, 2012 originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 24 Jan 2012 21:45:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Tim Cook to hold January 25 ‘Town Hall’ meeting with Apple employees

Apple CEO Tim Cook has scheduled a “Town Hall” meeting with Apple’s employees to “review our record-setting results and discuss some exciting new things going on at Apple.” The meeting will take place at 10 AM Pacific on January 25, and those employees unable to attend in person will be able to watch the event remotely via Apple’s internal AppleWeb service.

It should be stressed that it is virtually certain no product announcements will be made at this town hall meeting. Past meetings that Steve Jobs led focused on the company’s overall strategy, and they were occasionally an arena for some choice words about Apple’s competitors from the former CEO. This latest town hall meeting will likely focus on congratulating Apple’s employees for the phenomenal results of the last fiscal quarter.

The event was brought to 9to5 Mac’s notice barely 18 hours before it’s scheduled to take place, so it seems to have been assembled on quite short notice. This isn’t unusual, however; previous town hall meetings within Apple following the introduction of the iPad and shortly before the original iPhone’s launch happened on similarly short notice.

Tim Cook to hold January 25 ‘Town Hall’ meeting with Apple employees originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 24 Jan 2012 21:30:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

iCloud now has 85 million users

In its recent conference call discussing its record-smashing financial results, Apple revealed that its cloud syncing service, iCloud, currently has 85 million users signed up. iCloud debuted alongside the iPhone 4S and iOS 5 as a free-of-charge replacement for Apple’s old MobileMe service, and its growth over the past three months has apparently been explosive; during the same period, iCloud signups exceeded unit sales of Macs, iPods, iPhones, and iPads combined.

Apple has called iCloud part of its “strategy for the next decade,” and as an iCloud user myself I can see why. The cloud syncing service runs much faster and much more seamlessly than MobileMe ever did, and it’s very hard to argue with the price: $0 gets your email, calendars, contacts, and documents synced across all your devices with almost zero effort.

iCloud now has 85 million users originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 24 Jan 2012 20:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

What’s Apple going to do with $97 billion in cash?

During its earnings conference call, Apple confirmed the company is sitting on a treasure chest of US$97.6 billion. This stack of cash is steadily growing, up from $81.6 billion at the end of the September quarter. With all that money in the bank, you can’t help but wonder… what’s Apple going to with it all?

Rather than sitting idly in the bank, Apple said it’s “actively discussing the best use of its cash,” which could be a hint it’s looking at strategic acquisitions. Neither CEO Tim Cook nor CFO Peter Oppenheimer would comment specifically on any acquisitions or what other plans Apple had for this cash. The only straight answer was that Apple, in the past, has spent its cash wisely and will continue to spend it wisely in the future.

Apple has a long history of quietly acquiring companies and adding their talent to Apple’s hardware and software teams. In past few years, the company has acquired mapping company Placebase, 3D-map maker C3 Technologies and online music service LaLa. It recently scooped up voice control software Siri and flash memory maker Anobit.

If Apple does use some of its reserves to acquire new technology, which company will be next? Besides improving its Numbers app, what else could Apple do with its money?

What’s Apple going to do with $97 billion in cash? originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 24 Jan 2012 19:30:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Apple TV: $140 million worth sold in three months, but still a ‘hobby’

During the most recent conference call discussing Apple’s quarterly results, Apple’s executives did something highly unusual and divulged actual sales figures for the Apple TV. Responding to a question about Apple’s future plans for the TV-centric device, Apple dodged the question (as is typical when it’s asked to speculate on unreleased products), and said it still classifies the Apple TV as a “hobby.”

That hobby still turns out to be pretty lucrative for Apple, though. Apple sold 2.8 million units during the 2011 fiscal year — a low number compared to sales of its other devices, but the US$99 product still added $280 million or so in revenue for the year. Nothing to sneeze at. According to Tim Cook, however, Apple’s sales of the device for its most recent quarter totaled 1.4 million, so even though the device hasn’t been updated in quite some time, demand for it remains steady.

Apple is in a very interesting position where it can consider a device that brought in $140 million in revenue over three months a “hobby.” Cook and the other execs on the call gave no indication that the Apple TV would be updated in the near future, so the Apple HDTV remains 2012’s Little Rumor that Could.

Apple TV: $140 million worth sold in three months, but still a ‘hobby’ originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 24 Jan 2012 19:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Tim Cook: Tablet market will eventually exceed PC market

As part of today’s earnings call, Apple CEO Tim Cook said he believes tablets will eventually eclipse PCs.

“I believe there will come a day when tablet market by unit is larger than the PC market,” he said.

Cook emphasized that Apple would continue to be innovative in the tablet market, and that people want to do multiple things with them. He added that Apple does not see tablets such as iPads being in the same category as devices such as the basic Kindle and Nook. “People who want an iPad will not settle,” Cook said.

A recent report from the Pew Research Center shows that the number of adult Americans who own tablets leaped from 10 percent to 19 percent over the holiday season. While Pew cited the Kindle Fire and Nook Tablet being behind the ownership surge, Apple selling 15.43 million iPads in the previous quarter certainly contributed to this as well.

As Apple continues to do more with the iPad, and whatever successors it has, it’s not hard to believe that Cook’s predictions will come to pass within the next few years. (It’s already coming true for Apple — the iPad outsold all Macs combined by nearly three to one last quarter. –Ed)

Tim Cook: Tablet market will eventually exceed PC market originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 24 Jan 2012 18:30:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Apple Store almost worth as much as the White House

There are several different ways to judge the success of a company. You have earnings reports, brand value and market value. For retailers, there’s sales-per-square-foot which places a monetary figure on the sales and the size of a store.

CNN calculated Apple’s sales-per-square-foot value and determined its flagship Fifth Avenue store in New York City (US$4,709 per square-foot) is worth almost as much as the White House ($4,752 per square-foot). It’s also significantly more valuable than #2 Tiffany, which has a sales-per-square-foot value that’s 40% less ($2,974 per square-foot) than Apple’s.

Apple opened its first retail store eleven years ago, and it’s been a rocket-ride to the top of the retail market for the Cupertino company. It now has over 350 stores, which occupy three million square feet and generate $14.1 billion dollars a year. The secret to Apple’s success, says analysts, is its flawless retail execution which dictates everything from how the store looks to how its employees interact with customers. Apple products also command a higher than average retail price which helps to boost the company’s bottom line.

Apple Store almost worth as much as the White House originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 24 Jan 2012 18:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments