मेरी प्रोजेक्ट में मेरे पास एक साधारण एनीमेशन है, मैं बस बाएं से दाएं दृश्य को ले जाता हूं। यह आईओएस 6 में ठीक काम करता है, लेकिन जब मैं आईओएस 7 में चलता हूं तो यह कुछ भी नहीं करता है। क्या कोई जानता है क्यों? अगर एनीमेशन बहुत आसान है तो मैं इसे आईओएस 7 के लिए कैसे ठीक कर सकता हूं? मेरे कोड है:यह सरल एनीमेशन आईओएस 7 पर क्यों काम नहीं कर रहा है?
- (void) showAnimation
{
if (IS_IPAD())
{
[UIView animateWithDuration:50.0f
delay:1
options:UIViewAnimationOptionRepeat
animations:^{
ViewBOLIVIA.frame = CGRectMake(1024,0, ViewBOLIVIA.frame.size.width, ViewBOLIVIA.frame.size.height);
} completion:nil];
}
else
{
if (IS_IPHONE_5)
{
[UIView animateWithDuration:50.0f
delay:1
options:UIViewAnimationOptionRepeat
animations:^{
ViewBOLIVIA.frame = CGRectMake(568,0, ViewBOLIVIA.frame.size.width, ViewBOLIVIA.frame.size.height);
} completion:nil];
}
else
{
[UIView animateWithDuration:50.0f
delay:1
options:UIViewAnimationOptionRepeat
animations:^{
ViewBOLIVIA.frame = CGRectMake(480,0, ViewBOLIVIA.frame.size.width, ViewBOLIVIA.frame.size.height);
} completion:nil];
}
}
}
मैं अद्यतन और इम Xcode 5 और iOS 7 का उपयोग कर तो किसी भी मदद के दोस्तों, क्या तुम जानते हो कि यह कैसे ठीक किया?
क्या आप ऑटो लेआउट का उपयोग कर रहे हैं? –
नहीं, मैं ऑटो लेआउट –
का उपयोग नहीं कर रहा हूं क्या आपने कोड को सत्यापित करने के लिए ब्रेकपॉइंट्स का उपयोग किया है? – bneely