我想獲取當前屏幕的截圖。 但是,無論何時呈現MFMailComposeViewController或任何其他視圖控制器,繪製的屏幕截圖都沒有黑屏。 //Code to draw what ever is present currently on the screen
- (UIImage*)screenshot {
CGSize imageSize = [[UIScreen mainScre
我有一個MainViewController,最重要的是我增加了一個UIViewiSnap這是另一個類。 現在我想要捕獲MainViewController視圖的一部分iSnap。 這可能嗎? 我知道如何從當前視圖控制器的視圖中捕捉圖像,但在這裏我想捕獲MainViewController的視圖部分iSnap類。 此代碼我用於捕獲圖像,它駐留在iSnap類。 if ([[UIScreen main
我需要在我的動態創建的視圖中繪製形狀/線條。這是我正在嘗試的代碼,但它並沒有繪製任何東西,雖然意見被添加。 //loc1 and loc2 are the touch locations on the view used to draw a rect
UIView *vw = [[UIView alloc] initWithFrame:CGRectMake(loc1.x, loc1.y,loc2