iOS8 UITableView의 EdgeInset이 안먹는 경우

iOS7에서는 separatorInset을 UIEdgeInsetsZero로 주면 테이블뷰의 separator 라인의 마진이 없어졌었다.

하지만 iOS8에서는 separatorInset이 아닌 layoutMargin으로 바뀌었다.

테이블뷰에서 직접설정하면 되지만 커스텀 셀을 사용하는 경우 cell에 layoutMargin처리를 해야 제대로 동작한다.

 

하지만, 커스텀 셀이 많은 경우 테이블뷰의 willDisplayCell 딜리게이트를 이용해 다음과 같이 처리하면 보다 적은양의 코드로 처리가 가능하다.

 

-(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath {

    if ([tableView respondsToSelector:@selector(setSeparatorInset:)]) {

        [tableView setSeparatorInset:UIEdgeInsetsZero];

    }

    

    if ([tableView respondsToSelector:@selector(setLayoutMargins:)]) {

        [tableView setLayoutMargins:UIEdgeInsetsZero];

    }

    

    if ([cell respondsToSelector:@selector(setLayoutMargins:)]) {

        [cell setLayoutMargins:UIEdgeInsetsZero];

    }

}

 

 

 

Facebook is one place where you can be whoever you wish to be. There are no restrictions (except the fact that you don’t harass, badmouth someone else or use profanity). The power that can really be projected here that Cheap Oakleys could change this thing would be it wouldn’t take a million fans. It wouldn’t take 10 million fans. I just can fathom what cheap oakleys made you decide to do an interlocking design. By nature, pearler beads don really support interlocking. 27 includes a video of Stevie Wonder, Luther Vandross, Whitney Houston and Dionne Warwick singing the song “That’s wholesale nfl jerseys what friends are for.”In the post, Salaam noted he was “feeling joyful” and told people to “keep smiling.”Followers since have posted condolences underneath it.News of his death shook the CU community Tuesday as many remembered Salaam’s slicing runs in 1994 on a team that might be one of the greatest not to win a national championship. It included standout quarterback Kordell Stewart and star receiver Michael Westbrook, who combined for a legendary Hail Mary pass that season to beat Michigan as time expired. This practice oakley outlet is acceptable under the FLSA, provided certain conditions are met. New Jersey employers are allowed to use the fluctuating workweek method.. A poker table is a table specially designed for playing cards usually poker. It is covered with a soft material or a smooth fabric that allows cards to glide smoothly. He was a very physical player, but he was someone who had to use every ounce of strength he had and had to use his body in ways that other players simply don’t. And I really think he could’ve had a long career in the NFL if he’d been able to stay healthy and wanted to play in the NFL. Even if the latest drama in the Solo saga spills onto the field, Australia won’t have much of an upper hand. The Americans have played the Aussies 24 times and never lost (beating them 22 times and tying twice). “Schools quite often move around or spend money to basically get rid of excess revenue what would be called profit in a profit making corporation,” said Michael Leeds, a professor of economics at Temple University. “‘[That’s cheap nfl jerseys why] you have several coaches [in the NCAA] getting paid NFL money, despite working for an enterprise that really ray bans sale does not match what the New England Patriots and the New York Giants take in.”. Mr. DANNY ROBERSON (Defensive Tackle, Nashville Storm): It’s just a love of the game. The invention of the telephone is one of those storybook legends everyone learns as a schoolkid. You know how it goes Alexander Graham Bell is tinkering with his newfangled magic discount football jerseys talking machine and says the legendary first words ever spoken into a phone: “Mr.

Published by

안반장

Web과 App 개발을 하고 있으며 최근 워드프레스에 관심이 많아져 네이버 카페 워드프레스 홈페이지의 TF팀으로 활동 중 입니다.개인적으로는 안반장의 개발 노트라는 블로그를 운영하면서 개발의 즐거움과 고충들을 차곡차곡 담아가고 있습니다.