Google Groups

Re: [PhoneGap] orientationchange event does not fire in ios(v1.6.0)


Shazron Abdullah Apr 13, 2012 8:04 AM
Posted in group: phonegap
http://issues.apache.org/jira/browse/CB-501

2012/4/13 谭恒 <tanh...@gmail.com>:
> Checked again and still can't get orientationchange event fired in
> iphone 4.3 simulator.
> I notice that in CDVViewController.m, in fuction
> didRotateFromInterfaceOrientation, these is a " TODO: update JS
> references here". Unfinished code?
>
> 在 2012年4月11日 上午3:09,谭恒 <tanh...@gmail.com> 写道:
>> I did enabled all the orientations.And when i rotate the simulator,
>> the screen rotate correctly, but orientationchange event just not
>> fire.
>>
>> That's happen to iphone 4.3 simulator, but when i change to 5.0/5.1
>> simulator, orientationchange did get fired.
>>
>> I am not good at ios develop, am i missing something? And I use xcode 4.3.
>>
>> Sorry for poor english.
>>
>> 2012/4/11 Shazron <sha...@gmail.com>:
>>> Just re-tested it again, it works. By default a new app only supports
>>> portrait, you have to enable the other orientations. Click on your
>>> project icon, then Summary.
>>>
>>> On Tue, Apr 10, 2012 at 10:52 AM, 谭恒 <tanh...@gmail.com> wrote:
>>>> Test with a simple:
>>>>
>>>>  document.addEventListener('orientationchange',
>>>> function(){console.log('orientationchange!')})
>>>>
>>>> in deviceready.
>>>>
>>>> Am i missing something or it's a bug?
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "phonegap" group.
>>>> To post to this group, send email to phon...@googlegroups.com
>>>> To unsubscribe from this group, send email to
>>>> phonegap+u...@googlegroups.com
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/phonegap?hl=en?hl=en
>>>>
>>>> For more info on PhoneGap or to download the code go to www.phonegap.com
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "phonegap" group.
>>> To post to this group, send email to phon...@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> phonegap+u...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/phonegap?hl=en?hl=en
>>>
>>> For more info on PhoneGap or to download the code go to www.phonegap.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com