Navigation Bar Item 이미지 넣기

    // 스토어 버튼

    UIImage *image_store = [UIImage imageNamed:@"store_btn.png"];

    image_store = [UIImage imageWithCGImage:[image_store CGImage] scale:2.0 orientation:UIImageOrientationUp];

    UIButton *btn_store = [UIButton buttonWithType:UIButtonTypeCustom];

    btn_store.bounds = CGRectMake(0, 0, image_store.size.width, image_store.size.height);

    

    [btn_store setImage:image_store forState:UIControlStateNormal];

    [btn_store addTarget:self action:@selector(Clicked_Store) forControlEvents:UIControlEventTouchUpInside];

이 글을 공유하기


댓글(0)

Designed by CMSFactory.NET