Visualizzazione post con etichetta iphone. Mostra tutti i post
Visualizzazione post con etichetta iphone. Mostra tutti i post

venerdì 14 marzo 2014

@synthetize vs @dynamic in ObjectiveC

Since it's the second or third time that I find myself looking for a response to this question on Internet, I'd like to note it here and share with everyone who needs an explication of the difference between the to directives @dynamic and @syntethize in Objective C.

The response is posted by Alex Rozanski in a Stackoverflow thread

Some accessors are created dynamically at runtime, such as certain ones used in CoreData's NSManagedObject class. If you want to declare and use properties for these cases, but want to avoid warnings about methods missing at compile time, you can use the @dynamic directive instead of @synthesize.
...
Using the @dynamic directive essentially tells the compiler "don't worry about it, a method is on the way."
The @synthesize directive, on the other hand, generates the accessor methods for you at compile time (although as noted in the "Mixing Synthesized and Custom Accessors" section it is flexible and does not generate methods for you if either are implemented).

giovedì 13 marzo 2014

ObjectiveC: Create a thread safe singleton

If you need to create a singleton keeping it thread-safe, Apple recommends to use the dispatch_once paradigm.

Below an example taken from a Stackoverflow thread (where a user mention this method is 2 times faster than using the classic synchronized paradigm):

+ (MyClass *)sharedInstance
{
    //  Static local predicate must be initialized to 0
    static MyClass *sharedInstance = nil;
    static dispatch_once_t onceToken = 0;
    dispatch_once(&onceToken, ^{
        sharedInstance = [[MyClass alloc] init];
        // Do any other initialisation stuff here
    });
    return sharedInstance;
}

lunedì 22 ottobre 2012

Ground Control: a simple iOS library to control your remote for control

The needs to control your application from remote is becoming more and more important. Talking about iOS application you might want to hide or control some features during the Apple validation process or after the application has been launched.

Or maybe you'd like to show a specific message to the user under certain conditions that you can verify on server side.

Ground Control is an iOS library built on top of AFNetworking that makes easy to accomplish this task.

GroundControl asynchronously downloads and reads a remote plist file. This could be a static file or generated dynamically, like in the following examples

Few lines of code and you are ready to go. Discover more on GitHub

martedì 13 marzo 2012

Soccer Scores Pro: all the soccer scores on your phone

Soccer Score Pro is a free application that provide many informations about the most important soccer tournaments all around the world.
Live scores, notifications when the results change, matches' statistic data, league tables and schedules and rich news section.
A nice user interface completes this very good products.
The list of leagues includes:
  • Premier League;
  • Championship;
  • Ligue 1;
  • Ligue 2;
  • Eredivisie;
  • Serie A;
  • Serie B;
  • La Liga;
  • MLS;
  • Europa League;
  • Champions League;
  • Euro 2012;
  • World cup;
  • Mexican League;
  • Scottish League;
  • ....
The application is available for iPhone and Android 

 

giovedì 22 dicembre 2011

IOS3.1.3: No access anymore to the AppStore? The problem seems fixed

The Apple Stores has been not accessibe for some days for devices supporting iOS 3.1.3 and lower. At the beginning it has been thought that Apple had decided to not support those old versions anymore but now the access is possible again so it seems it has been a temporary failure: Engadgetarticle

Apple Store Icon

mercoledì 7 ottobre 2009

Fifa10 su Iphone per 7.99 euro

One of the most popular soccer (or football to say in English UK) game is available on the AppStore. It costs 7.99 euro.

To be honest several reviews are not really good especially for the graphic that needs to be improved and for the usability.....

Here you are one screenshot:


fifa10

lunedì 5 ottobre 2009

iPhone Nike application for football training

From Mobile-Entertainment

Nike has launched a new iPhone app targeting footy fans - or at least those who want to get off their sofas and develop their skills.

Nike Football+ Presents: Master Control is its slightly cumbersome title, and it's free to download from the App Store.

The application offers a four-week skills training programme designed by coaches from FC Barcelona, complete with videos. Stars included in the app are Pep Guardiola, Andres Iniesta and Cesc Fabregas.

Arsenal fans may wonder why their captain is appearing in a Barca-dominated iPhone app. Perhaps Nike really does have an inside line to future transfers...

The application also includes a Fabregas-branded Challenge, which lets users benchmark their skills and post scores to a global leaderboard.

lunedì 28 settembre 2009

RealMadrid app for iPhone

Real Madrid C.F. launches MyMadrid the official application of the greatest club of the 20th Century.

With MyMadrid you'll be able to:
• Have access all the official news from the club
• Video clips from Real Madrid TV
• Official photo gallery
• Access Real Madrid's official YouTube channel
• Follow matches live
• Check results and match reports
• See the best goals in real time
• Check the league table
• Have exclusive access to Real Madrid products and content
• Buy match tickets
• Read player profiles

The price is 1.95€


The supporters can download the Java version of the application sending a sms with text REAL to 5425.

Real Madrid iPhone application

lunedì 29 novembre 1999

Campionato: iPhone application for world soccer league fans

For the first time I'm going to talk about an IPhone application which is a must for supporters that want to follow soccer leagues.


Campionato is an IPhone application wrtten by two great Italian coder: Stefano Sanna and Roberto Fraboni with the help of Simone Marinelli and Maurizio Terzo.


Campionato screenshot


It's mainly about Italian Serie A for which presents the following features:



  • Live info;

  • Matches live scores;

  • Match details;

  • Fixtures;

  • Updated tables;

  • Players rankings;

  • Info about teams and stadiums;

  • Maps integration for stadiums localization;

  • Favourite team choice;

  • Links to teams and general soccer websites


For the other leagues it is possible get the live scores. The supported leagues are:



  • Premier League (England);

  • Primera Division (Spain)

  • Bundesliga I (Germany)

  • Ligue I (France)

  • Eredivisie (Holland)

  • Superliga (Portugal)

  • Premier Liga (Russia)



The applications is available on the AppStore