iOS点击按钮复制

UIPasteboard *pab = [UIPasteboard generalPasteboard];
    NSString *string = _skrTextF.text;
    pab.string = string;
    if (pab == nil) {
        NSLog(@"复制失败");
    }else
    {
         NSLog(@"复制成功");
        
    }

你可能感兴趣的:(iOS点击按钮复制)