요롷고롬 하면 됨.


    CGRect rect = /* FULL SCREEN */;

    [[self.tabBarController.view.subviews objectAtIndex:0] setFrame:rect];



    [self.tabBarController.tabBar setHidden:YES];

    [[self.tabBarController.view.subviews objectAtIndex:0] setFrame:self.tabBarController.view.frame];







http://stackoverflow.com/questions/2426248/uitabbar-leaves-a-white-rectangle-when-hidden

Posted by tenn
,




// 디폴트 링크 전부 삭제

[self.ohlabel setAutomaticallyAddLinksForType:0];



//링크만 체크 (숫자로 전화걸리는 링크는 삭제하고 싶을때)

[self.ohlabel setAutomaticallyAddLinksForType:NSTextCheckingTypeLink];






참고링크


**문자열로부터 URL, 전화번호를 취득.

http://www.sirochro.com/note/objc-nsdatadetector-using/


** 링크 기능 죽이기

https://github.com/AliSoftware/OHAttributedLabel/issues/112

Posted by tenn
,


** Global Queue

    dispatch_queue_t syncQueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT0);

    dispatch_async(syncQueue, ^{

});


** Main Queue


dispatch_async(dispatch_get_main_queue(), ^{

        });



** private Queue


dispatch_queue_t queue;
queue = dispatch_queue_create("com.example.MyQueue", NULL);




************


Simple block sample

int x = 123;
int y = 456;
 
// Block declaration and assignment
void (^aBlock)(int) = ^(int z) {
    printf("%d %d %d\n", x, y, z);
};
 
// Execute the block
aBlock(789);   // prints: 123 456 789

https://developer.apple.com/library/ios/documentation/General/Conceptual/ConcurrencyProgrammingGuide/OperationQueues/OperationQueues.html

************

...Block:(void(^)(int b, intc))block{

     block(1, 2);

}

Posted by tenn
,