Anthony Frizalone
^
  • portrait
If you've made videos, you should upload them to Vimeo. It's free, easy, and private. And quick to sign up.
 

Activity

up down
  • By them
  • On them
nipple
  • add_comment
    1 month ago
    Anthony Frizalone commented on Hello World iPhone Tutorial

    Heh. Yes and no.

    If you want to write Web Apps, then all you need is JavaScript and HTML (try downloading Dashcode from Apple).

    But, if you want to write native iPhone apps (apps that don't need to be run through Safari, then no, you can't use HTML/JavaScript).

  • add_comment
    2 months ago
    Anthony Frizalone commented on Hello World iPhone Tutorial

    Here is the source code. Also, don't forget, you can download the video yourself with the link on the bottom right under "Downloads." The video there will be as clear as you need it.

    -----------------------------------------------------

    import "MyView.h"

    #define TEXT_LABEL_FONT_SIZE 30.0
    #define TEXT_FIELD_HEIGHT_MULTIPLIER 2.0

    @implementation MyView

    - (id)initWithFrame:(CGRect)aRect
    {
    [super initWithFrame:aRect];
    self.backgroundColor = [UIColor whiteColor];

    CGRect contentFrame = self.frame;
    CGFloat leftMargin = 90.0;
    CGFloat textFieldWidth = contentFrame.size.width * 0.72;
    CGFloat textFieldOrigin X = (contentFrame.size.width - textFieldWidth) / 2.0;

    CGRect labelFrame = CGRectMake(textFieldOrigin X, leftMargin, textFieldWidth, TEXT_LABEL_FONT_SIZE * TEXT_FIELD_HEIGHT_MULTIPLIER);
    UILabel *someText = [[UILabel alloc] initWithFrame:labelFrame];
    someText.text = @"Hello World!";
    someText.font = [UIFont systemFontOfSiz e:TEXT_LABEL_FONT_SIZE];
    someText.textColor = [UIColor redColor];
    someText.textAlignment = UITextAlignment Center;

    [self addSubview:someText];
    [someText release];

    return self;
    }

  • add_tags
    2 months ago
    Anthony Frizalone tagged UINavigationBar Cocoa Touch Tutorial (iPhone).
  • add_tags

Video Request

Open Requests

None yet

Sponsored by:

Their Channels

No active channels. Subscribe to one today!