---
title: "about UIPasteboard clip in iPad Programming"  
description: "about UIPasteboard clip in iPad Programming"  
author: "Anonymous User"  
published: 2013-06-04  
updated: 2013-06-05  
canonical: https://www.mindstick.com/forum/978/about-uipasteboard-clip-in-ipad-programming  
category: "iphone"  
tags: ["iphone"]  
reading_time: 1 minute  

---

# about UIPasteboard clip in iPad Programming

Hi [Developers](https://www.mindstick.com/articles/12875/blunders-you-must-avoid-while-hiring-java-developers-to-get-the-best-fulfilling-your-needs),\
I want to implement a clipboard app using **UIPasteboard**, which can copy plain text and also [rich](https://yourviews.mindstick.com/story/2229/10-things-to-know-about-rich-india) [format](https://www.mindstick.com/forum/162083/how-to-convert-ost-files-into-pst-format) , [web content](https://www.mindstick.com/blog/303211/explore-the-web-content-accessibility-guidelines-wcag-2-1) in to the pasteboard , and then display on my [TextView](https://www.mindstick.com/forum/23237/how-do-i-center-text-horizontally-and-vertically-in-a-textview-in-android) or WebView. how can i do that?\
I have following [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii) and it can get the plain text , but what if i copy a web content?\
**if ([pasteboard containsPasteboardTypes:[NSArray arrayWithObjects:@"public.utf8-plain-text", @"public.text", nil]]){** **if (![_contentList containsObject:pasteboard.[string](https://www.mindstick.com/articles/1527/string-split-in-c-sharp)]){** **NSLog(@"String representation [present](https://answers.mindstick.com/qa/96635/explain-about-the-various-features-present-in-ms-access): %@", pasteboard.string);** **[[self](https://www.mindstick.com/articles/44535/smart-ways-to-secure-self-storage-facilities) addContentList:pasteboard.string];** **[pasteboard setValue:@"" forPasteboardType:UIPasteboardNameGeneral];** **}****}****\**Thanks in advance.

## Replies

### Reply by AVADHESH PATEL

Hi Ben,\
Try using UIPasteboardTypeListString instead\

```
[[UIPasteboard generalPasteboard] containsPasteboardTypes:UIPasteboardTypeListString];UIPasteboard *pasteboard = [UIPasteboard generalPasteboard]; if (pasteboard.string != nil) {    [self insertText:pasteboard.string]; }
```

**\**I hope it resolve your problem.


---

Original Source: https://www.mindstick.com/forum/978/about-uipasteboard-clip-in-ipad-programming

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
