사용하려는 클래스의 .m파일 끝에 붙이면 됨.


@implementation UITextView (DisableCopyPaste)

- (BOOL)canBecomeFirstResponder
{
    return NO;
}

@end



http://stackoverflow.com/questions/1426731/how-disable-copy-cut-select-select-all-in-uitextview

Posted by tenn
,


git commit --amend -m "your new message"


http://stackoverflow.com/questions/179123/how-do-i-edit-an-incorrect-commit-message-in-git


Posted by tenn
,


    NSArray *cells = self.tableView.visibleCells;

    for(UITableViewCell *cell in cells){

        cell.userInteractionEnabled = NO;

    }


*** 이렇게 하면 보이는 셀만 잠근다.

스크롤 하면 재사용해서 셀을 돌리기 때문에 꼬인다.

셀을 생성하는 구문도 수정필요.

Posted by tenn
,