_momVC = [[MOMViewController alloc] initWithNibName:@“MOMViewController”bundle:nil]; _momVC.contents = encodedString; _momVC.delegate = self; _momVC.preferredContentSize = CGSizeMake(self.view.frame.size.width,90);
function moveObj1(){
left = parseInt(imgObjPurple.style.left, 10);
moveRightDown = 300;
if (parseInt(screen.height) + moveRightDown >= left) {
imgObjPurple.style.left = (left + 4) + 'px';
imgObjPurple.style.top = (parseInt(imgObjPurple.style.top) + downValue) + 'px';
imgObjPurple.style.display = 'block';
animate = setTimeout(function () {
moveObj1();
}, 15);
}
}
function moveObj2() {
moveRightDown = 300;
left1 = parseInt(imgObjBlue.style.left, 10);
if (parseInt(screen.height) + moveRightDown >= left1) {
imgObjBlue.style.left = (left1 + 4) + 'px';
imgObjBlue.style.top = (parseInt(imgObjBlue.style.top) + downValue) + 'px';
imgObjBlue.style.display = 'block';
animate = setTimeout(function () {
moveObj2();
}, 15);
}
function move(){
moveObj1();
setTimeout(function(){
moveObj2();
});
}