Anthony Frizalone
-
Hello World iPhone Tutorial
2 months ago -
UINavigationBar Cocoa Touch Tutorial (iPhone)
2 months ago -
I'm Better, I Promise - a Halo 3 Montage
4 months ago
Activity
-
1 month agoAnthony Frizalone commented on Hello World iPhone TutorialHeh. 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). -
2 months agoAnthony Frizalone commented on Hello World iPhone TutorialHere 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;
} -
2 months agoAnthony Frizalone tagged UINavigationBar Cocoa Touch Tutorial (iPhone). -
4 months agoAnthony Frizalone tagged I'm Better, I Promise - a Halo 3 Montage.
Video Request
Open Requests
- Vimeo: About / Blog / Developers / Forums / Help! / Site Map
- Legal: © 2008 Connected Ventures, LLC. All rights reserved. / Terms & Conditions / Privacy Statement



Top
Bottom