Pages

Friday, April 22, 2011

[iPhone-app] Vinos de Cigales (Wines From Cigales)

Wines from Cigales is a lite application to announce throught iPhone devices D.O. Cigales (Valladolid, Spain) wineries and its associated brands. With a very simple, intuitive and visual interfaces users can view wineries contact info and the list of associated brands, search by brand, by winery or by city.

Wines from Cigales publishing at iTunes were collected by local newspapers in theirs paper and on-line editions.

Name: Vinos de Cigales / Wines from Cigales / Vins Cigales
Languages: Spanish / English / French
Category: Lifestyle.
Cost: FREE

Wines from Cigales AppStore Link

Tuesday, April 19, 2011

[Code Snippet] Custom section header in UITableView

The code snippet for this week is about customizing UITableView headers for section because most times we want to set our own font type, font size or color. To accomplish that, first thing that we should do is to implement

(UIView *) tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section

in our UITableViewController class. After that, this is the code snippet to customize our header with a UILabel control.

    UIView* customView = [[UIView alloc] initWithFrame:CGRectMake(10.0, 0.0, 300.0, 44.0)];
   
    // create the button object
    UILabel * headerLabel = [[UILabel alloc] initWithFrame:CGRectZero];
    headerLabel.backgroundColor = [UIColor clearColor];
    headerLabel.opaque = NO;
    headerLabel.textColor = [UIColor redColor];
    headerLabel.highlightedTextColor = [UIColor whiteColor];
    headerLabel.font = [UIFont boldSystemFontOfSize:20];
    headerLabel.frame = CGRectMake(10.0, 0.0, 300.0, 44.0);

    // If you want to align the header text as centered
    // headerLabel.frame = CGRectMake(150.0, 0.0, 300.0, 44.0);

    headerLabel.text = (NSString*)[arrayOfHeaders objectAtIndex:section];
    [customView addSubview:headerLabel];

    return customView

Have a look that returns class is UIView and iOS controls inherits for that class so we could customize section's headers with other controls like UIImageView or UIButton.

Enjoy it!

Wednesday, April 13, 2011

[WindowsPhone-Game] Oil Station

Do you remember pre-mobiles era? Do you remember that little retro arcade machines, with two buttons for left and right moves, select game mode and start? That was grandpa's modern mobile games and consoles, and why not use it in a modern device like Windows Phone?
This game is a replica of oldest one in which you are an gas station worker who has to keep the floor clean of oil. Pick up oil drops and carry them to the barrel to avoid spill them.

Available for free at Zune for Windows Phone, we expect you enjoy a great time remembering youngest time.

Name: OilStation
Language: N/A
Category: Games
Cost: FREE

[iPhone-app] Tickeating

Tickeating is a very useful geo-location app for iPhone which helps Spanish users, who have Cheque Gourmet tickets for dinner, to localize restaurants that accept this kind of tickets.
Its main functionality is to localize restaurants on map which are at lower distance than users’ selection. Also users can search for restaurants (filling a quick or an extended form) and add restaurants to a favorite list.
Tickeating is available at appStore for only 0,99$ (0,79 €) or a low-functionality Tickeating Lite version.

Name: Tickeating / Tickeating Lite
Language: Spanish
Category: Lifestyle
Cost: $ 0,99 (0,79 €) / Free

Tickeating AppStore Link


[Code Snippet] Change UITableView background.

With this post we'll begin a serie of weekly code snippets which could help newbies (and not newbies at all) for its iPhone developments.

Today's snippet it's the code neccesary for changing UITableView backgroud to a custom image which will be in our Resources folder, very simple but very useful.

    [self.tableView setBackgroundColor:[UIColor clearColor]];
   
    UIImageView *background = [[UIImageView alloc] init];
    background.frame = CGRectMake(0.0f, 0.0f, 320.0f, 480.0f);
    background.image = [UIImage imageNamed:@"background-1.png"];
   
    self.tableView.backgroundView = background;

Enjoy it!