-1
我已經嘗試了很多,但沒有得到任何解決方案。我已提到https://github.com/xmartlabs/XLMediaZoom。我想打開UIView就像facebook在全屏中打開圖像在目標c
我已經嘗試了很多,但沒有得到任何解決方案。我已提到https://github.com/xmartlabs/XLMediaZoom。我想打開UIView就像facebook在全屏中打開圖像在目標c
在第三方庫方面,https://www.cocoacontrols.com/controls/vertigo似乎是做你想做的事情?你可以看https://www.cocoacontrols.com/爲他人,如https://www.cocoacontrols.com/controls/exphotoviewer。
如果你想自己實現這一點,你可以看看自定義的轉換,這在iOS 7中成爲可能,例如當你點擊一個UIView時,你轉換到一個UIViewController,它覆蓋了整個屏幕的圖像。
其實這樣說你可能只是你的動畫UIView的覆蓋全屏:對,
[UIView animateWithDuration:0.5 delay:0 options:0 animations:^{
// (flag) ? set frame fullscreen : set frame normal
// or even better create and modify constraints with Masonry
// https://github.com/SnapKit/Masonry :)
}];
你如何使用這個庫?從github下載zip並在你的項目中運行或實施pod? –