我 叫 小 麦   我 不 会 乐 器
wǒ jiào xiǎo mài   wǒ bú huì yuè qì
所 以 拿 Lara 的 kala 乱 唱
suó yǐ ná Lara de kala luàn chàng
谢 谢 Gary 耐 心 帮 我 录 音
xiè xiè Gary nài xīn bāng wǒ lù yīn
我 唱 了 几 百 遍 还 是 写 不 出
wǒ chàng le jǐ bǎi biàn hái shì xiě bù chū
像 样 的 旋 律
xiàng yàng de xuán lǜ
只 好 拜 托 Jay
zhí hǎo bài tuō Jay
即 兴 唱 一 遍 竟 然 这 麽 好 听
jí xìng chàng yí biàn jìng rán zhè me hǎo tīng
我 的 麦 是 麦 当 劳 的 麦
wǒ de mài shì mài dāng láo de mài
我 的 烝 不 是 蒸 小 龙 包 的 蒸
wǒ de zhēng bú shì zhēng xiǎo lóng bāo de zhēng
我 的 玮 不 是 那 哥 哥 爸 爸 真 伟 大 的 伟
wǒ de wěi bú shì nà gē ge bà ba zhēn wěi dà de wěi

杰 伦 即 兴 的 功 力 真 让 我 傻 眼
jié lún jí xìng de gōng lì zhēn ràng wǒ shá yǎn
真 的 没 在 脑 海 中 考 虑 那 半 秒 吗
zhēn de méi zài náo hǎi zhōng kǎo lǜ nà bàn miǎo ma
我 真 的 不 信
wǒ zhēn de bú xìn
真 的 怀 疑
zhēn de huái yí
真 屌   真 强   真 佩 服
zhēn diǎo   zhēn qiáng   zhēn pèi fú
好 多 的 真 真 真
hǎo duō de zhēn zhēn zhēn
却 不 是 麦 烝 玮 的 烝
què bú shì mài zhēng wěi de zhēng
lyricsalls.blogspot.com
眼 睛 一 样 小 却 不 同 际 遇
yǎn jing yí yàng xiǎo què bù tóng jì yù
只 怪 当 初 我 没 好 好 学 琴
zhǐ guài dāng chū wǒ méi hǎo hào xué qín
反 而 去 跳 舞
fǎn ér qù tiào wǔ
有 什 麽 不 对 吗
yǒu shén me bú duì ma

请 记 得 大 学 那 一 年
qǐng jì dé dà xué nà yì nián
我 创 了 热 舞 社
wǒ chuàng le rè wǔ shè
有 一 天 回 到 了 母 校
yǒu yì tiān huí dào le mǔ xiào
学 弟 却 说 学 长 你 好 好 笑
xué dì què shuō xué zhǎng nǐ hǎo hǎo xiào
我 问 他 为 什 麽 好 笑
wǒ wèn tā wéi shén me hǎo xiào
他 说 他 看 了 Mr. J 频 道
tā shuō tā kàn le Mr. J pín dào
各 位 朋 友 请 记 住
gè wèi péng you qǐng jì zhù
我 不 是 那 搞 笑 的 艺 人
wǒ bú shì nà gǎo xiào de yì rén

我 的 麦 是 麦 当 劳 的 麦
wǒ de mài shì mài dāng láo de mài
我 的 烝 不 是 蒸 小 龙 包 的 蒸
wǒ de zhēng bú shì zhēng xiǎo lóng bāo de zhēng
我 的 玮 不 是 那 哥 哥 爸 爸 真 伟 大 的 伟
wǒ de wěi bú shì nà gē ge bà ba zhēn wěi dà de wěi
带 给 你 们 欢 乐 所 以 我 快 乐 我 不 是 搞 笑 艺 人
dài gěi nǐ men huān lè suó yǐ wǒ kuài lè wǒ bú shì gǎo xiào yì rén
我 是 麦 烝 玮
wǒ shì mài zhēng wěi

 

English Translation :

My name is Xiao Mai
I can’t play music
So, I get Lara’s karaoke to sing
Thanks for Gary who is patiently help me recording the music
I still can not write the songs hundreds of times
The sound of melody
Jay had to please
Improvisation is needed to sing a nice song

My Mai is Mai in McDonald’s
My Cheng is not Zheng Xiao Long’ steam
My Wei is not the brother and father’s great
Is not the brother and father’s real great

My Mai is Mai in McDonald’s
My Cheng is not Zheng Xiao Long’ steam
My Wei is not the brother and father’s great
Is not the brother and father’s real great

Jay’s improvisational skill makes me dumbfounded
I really don’t consider that half a second in my mind
I really don’t believe
Really doubt
Really cool, really strong, really admire
There are really a lot of
Mai Zhengwei’ assistant
As small as the eye has a different fate
I did not take the piano lessons when I blame
Instead, go dancing
What is wrong with you

Oh …

Remember the year in the university
I hit the dance club
One day back to the almamater
School seniors say hello funny brother
I asked him why funny
He said he saw Mr.J Channel
Dear friends, please remember
I’m not that funny
Artist

My Mai is Mai in McDonald’s
My Cheng is not Zheng Xiao Long’ steam
My Wei is not the brother and father’s great
Is not the brother and father’s real great

My Mai is Mai in McDonald’s
My Cheng is not Zheng Xiao Long’ steam
My Wei is not the brother and father’s great
Is not the brother and father’s real great

Remember the year in the university
I hit the dance club
One day back to the almamater
School seniors say hello funny brother
I asked him why funny
He said he saw Mr.J Channel
Dear friends, please remember
I’m not that funny
Artist

Rap:
I’m not funny
I’m not funny
I am the wind dance origin
Wind dance origin
I’m not funny
I’m not funny

Bring you joy
So I’m happy
I am not a comedian
I am Mai Zhengwei

 

Source :

  • http://lyricsalls.blogspot.com/2011/05/lirik-lagu-jay-chou-mai-zheng-wei-wo.html
  • http://networkedblogs.com/i1B9u

Prinsipnya jika kita ingin membuat suatu PDF Viewer, ada beberapa hal yang harus kita ingat :

  • Memory Management harus benar-benar bersih (setiap kali kita meng-create, harus di release)
  • Lebih baik melakukan CGPDFDocumentRelease & kembali melakukan CGPDFDocumentCreateWithURL untuk setiap halaman agar memory lebih bersih
  • Untuk hasil yang cepat, ada baiknya kita menggunakan tampilan image yang buruk pada saat tampil pertama kali (terinspirasi dari iBooks sih).. Ukuran image nya ikutin standar iBooks aja 239×319.
  • Jangan reuse object, karena akan mengurangi kecepatan pada saat ganti halaman. Jadi simplenya : selalu create object baru dan buang object yang lama
  • Jenis file PDF juga mempengaruhi kecepatan si iPad untuk render suatu halaman PDF
  • Selalu periksa memory usage menggunakan Instruments.app yang ada di XCode.

Pada kali ini, saya akan berbagi suatu teknik untuk integrasi Map Kit dengan Location

Langkah pertama, buat project dengan nama MapKit, kemudian import framework : MapKit.framework.

MapKit.framework ada di path ini : /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.3.sdk/System/Library/Frameworks/

Kemudian buat MapAnnotation dengan code seperti ini :
MapAnnotation.h


#import <UIKit/UIKit.h>

#import <MapKit/MapKit.h>

@interface MapAnnotation : NSObject <MKAnnotation>

{

CLLocationCoordinate2D coordinate;

NSString *title;

NSString *subtitle;

NSString *urlstring;

NSString *picstring;

}

@property (nonatomic, readonly) CLLocationCoordinate2D coordinate;

@property (nonatomic, retain) NSString *title;

@property (nonatomic, retain) NSString *subtitle;

@property (nonatomic, retain) NSString *urlstring;

@property (nonatomic, retain) NSString *picstring;

@end

MapAnnotation.m


#import "MapAnnotation.h"

@implementation MapAnnotation

@synthesize coordinate;

@synthesize title;

@synthesize subtitle;

@synthesize urlstring;

@synthesize picstring;

- (id) initWithCoordinate: (CLLocationCoordinate2D) aCoordinate

{

if (self = [super init]) coordinate = aCoordinate;

return self;

}

-(void) dealloc

{

self.title = nil;

self.subtitle = nil;

self.urlstring = nil;

self.picstring = nil;

[super dealloc];

}

@end

Setelah itu untuk Mapnya, kira-kira fungsinya seperti ini :


#pragma mark logic Button

- (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control

{

MapAnnotation *annotation = view.annotation;

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:annotation.urlstring]];

}

- (void)mapView:(MKMapView *)mapView didAddAnnotationViews:(NSArray *)views

{

if([views count] > 1)

{

for (int i=0; i < [views count]; i++)

{

MKPinAnnotationView *mkaview = [views objectAtIndex:i];

NSLog(@"%@\n",[(MapAnnotation *) mkaview.annotation picstring]);

mkaview.rightCalloutAccessoryView = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];

UIImage *origimage = [UIImage imageWithData: [NSData dataWithContentsOfURL:[NSURL URLWithString:[(MapAnnotation *) mkaview.annotation picstring]]]];

UIGraphicsBeginImageContext(CGSizeMake(32.0f, 32.0f));

[origimage drawInRect:CGRectMake(0.0f, 0.0f, 32.0f, 32.0f)];

UIImage *img = UIGraphicsGetImageFromCurrentImageContext();

UIGraphicsEndImageContext();

mkaview.leftCalloutAccessoryView = [[[UIImageView alloc] initWithImage:img] autorelease];

}

}

}

// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.

- (void)viewDidLoad {

NSArray * arrLati = [NSArray arrayWithObjects:

@"-6.600486",

@"-6.200486",

@"-5.800486",

@"-5.400486",

nil];

NSArray *arrLongi = [NSArray arrayWithObjects:

@"106.797743",

@"106.797743",

@"106.797743",

@"106.797743",

nil];

NSArray *namaImg = [NSArray arrayWithObjects:

@"http://www.boston.com/news/globe/ideas/brainiac/pikachu.gif",

@"http://www.gearfuse.com/wp-content/uploads/2010/07/Apple.jpg",

@"http://macclubindonesia.com/forums/image.php?u=27118&dateline=1259138986",

@"http://macclubindonesia.com/forums/image.php?u=27118&dateline=1259138986",

nil];

mapView=[[MKMapView alloc] initWithFrame:self.view.bounds];

mapView.showsUserLocation=NO;

mapView.mapType=MKMapTypeHybrid;

annotationDict = [[NSMutableDictionary alloc] init];

//definir le zoom

MKCoordinateSpan span;

span.latitudeDelta=0.5;

span.longitudeDelta=0.5;

double latitude = [[NSString stringWithFormat:@"%@",[arrLati objectAtIndex:0]] doubleValue];

double longitude =[[NSString stringWithFormat:@"%@",[arrLongi objectAtIndex:0]] doubleValue];

CLLocationCoordinate2D parisCoordinates;

parisCoordinates.latitude=latitude;

parisCoordinates.longitude=longitude;

MKCoordinateRegion parisRegion;

parisRegion.span=span;

parisRegion.center=parisCoordinates;

[mapView setRegion:parisRegion animated:TRUE];

for(int i=0;i<[arrLati count];i++)

{

latitude = [[NSString stringWithFormat:@"%@",[arrLati objectAtIndex:i]] doubleValue];

longitude =[[NSString stringWithFormat:@"%@",[arrLongi objectAtIndex:i]] doubleValue];

CLLocationCoordinate2D p2;

p2.latitude=latitude;

p2.longitude=longitude;

MapAnnotation *annotation = [[[MapAnnotation alloc] initWithCoordinate:p2] autorelease];

annotation.title = [NSString stringWithFormat:@"Testing ke %d",i];

annotation.urlstring = @"http://google.co.id/";

annotation.picstring = [namaImg objectAtIndex:i];

annotation.subtitle = [NSString stringWithFormat:@"%f, %f", p2.latitude, p2.longitude];

[annotationDict setObject:annotation forKey:[NSString stringWithFormat:@"Testing ke %d",i]];

}

[mapView removeAnnotations:mapView.annotations];

[mapView addAnnotations:[annotationDict allValues]];

[self.view addSubview:mapView];

mapView.delegate = self;

[super viewDidLoad];

}

}
<div>

Jangan lupa tambahkan : #import <MapKit/MapKit.h> dan  #import "AnnotationMap.h"
Saya akan menampilkan contoh source code dari project ini :
Screenshot :

Map iPhone

Map iPhone