2012-11-23 3 views
0

저는 Xcode를 처음 접했고 모든 기능에 익숙하지 않습니다. 단순히 UITabelView 아래에 배경 이미지가 있기를 원합니다. 이 문제에 대한 답이 많지만 모두 흰색 인조 물 테두리를 제공합니다. 제 질문은, 누군가가 같은 문제로 끝나고 해결 했습니까? 아이디어를 얻으려면 아래에 imag가 첨부되어 있습니다.UIImageView를 사용하여 인공물에서 UITableView 결과의 배경 이미지 그리기

도움이 필요하면 Thx! 그냥 빨리보기 내 implementaion 이상 여기

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions: 
(NSDictionary *)launchOptions{ 

    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 
    // Override point for customization after application launch 
    //initialise main views 
    UIImageView *backGround = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 
    self.window.bounds.size.width, self.window.bounds.size.height)]; 
    [backGround setImage:[UIImage imageNamed:@"Default.png"]]; 
    [self.window addSubview:backGround]; 
    LoginViewController *loginViewController = [[LoginViewController alloc] 
    initWithNibName:@"LoginViewController" bundle:nil]; 
    self.navigationController = [[UINavigationController alloc] 
    initWithRootViewController:loginViewController]; 
    self.window.rootViewController = self.navigationController; 
    self.window.backgroundColor = [UIColor whiteColor]; 
    [self.window makeKeyAndVisible]; 

    return YES; 
} 

enter image description here





[antoher UI 항목에 같은 문제]

이 지금은 같은이 내 프로그램에 문제가있다. rounded rect를 사용하여 수학적으로 생성 된 UIButtons. 그러나 나는 그들을 어떻게 없애 겠는가?

답변

1

나는이 문제를 해결하기 위해, u는 단일 라인 에칭 스타일에있는 tableview 구분 속성을 설정 내가 생각

전에이 문제에 직면 ... 높이 20 픽셀 작 활성화

tableview.separatorStyle = tableview.UITableViewCellSeparatorStyleSingleLine; 

또는

tableview.separatorStyle = tableview.UITableViewCellSeparatorStyleNone; 

또는 유 분리기 섹션 XIB 파일을 설정할 수 cellforrowatindexpath 대리자에서의 tableview 구분 설정할 .

당신에게

+0

도움이 될 수 있습니다 감사합니다,'tableview.separatorStyle'는''single' 또는 none' 나를 도와합니다 – zero3nna

0

그냥 생각 ...하지만 [UIScreen mainScreen]의 크기를 취하십시오. 당신이 때문에 ApplicationBar은 창 (?)

관련 문제