ios字符串反轉(zhuǎn) ios14頂部經(jīng)常出現(xiàn)粘貼?
ios14頂部經(jīng)常出現(xiàn)粘貼?解決方案:在應(yīng)用程序中將uipasteboard重置為空字符串[[uipasteboard general pasteboard]設(shè)置字符串:@“]當然,它在應(yīng)用程序中只是
ios14頂部經(jīng)常出現(xiàn)粘貼?
解決方案:
在應(yīng)用程序中將uipasteboard重置為空字符串
[[uipasteboard general pasteboard]設(shè)置字符串:@“
]當然,它在應(yīng)用程序中只是空的,并且外部的pasteboard不會更改。
可在應(yīng)用程序啟動時進行設(shè)置。
-(bool)application:(uiapplication*)application didfishlaunching with options:(nsdictionary*)launchoptions{
//覆蓋應(yīng)用程序啟動后的自定義點。
[[uipasteboard general pasteboard]setstring:@“”
]return yes
}]如果您的應(yīng)用程序也可以在后臺播放,您也可以在重新進入后臺時設(shè)置一次
-(void)applicationwillresignactive:(uiapplication*)application
{
[[uipasteboard general pasteboard]setstring:@“
}]這樣,您的應(yīng)用程序?qū)o法讀取粘貼板
當然,粘貼板有多種類型的字符串,但一般是復(fù)制字符串類型。如果需要,可以重置其他類型