Im trying to get a slider on an iphone web app, I'm using iui to handle the ui. The slider appears to be causing some kind of conflict with iui.js, when you drag the slider it tries to open another page. However it works fine when you just click on some part of the bar. I thought it was the slide event causing it but this event is triggered in both cases, so I'm a bit stuck. Any help would be greatly appreciated.
Simple test case (click through to get the slider):
Using Instruments Leaks & Object Alloc: Are autoreleased objects counted as leaks?
1:Beginner questions regarding to “building a library”, in Xcode on iPhone specifically
although this event is triggered in both cases. NSArray (and other containers) behavior on deallocI think you missed any thing (which may well explain your problem). Using directory with WebViewUI If you look at the slider's code, you'll see this mouse drags did have a different set of events this are triggered; look at "
_mouseCapture" and "
_mouseDrag". iphone-sdk, sharing data between multiple views
_mouseDragdoes trigger "
_slide", although it also triggers "
_normValueFromMouse" first. Some beginner Objective-C/iPhone questions As for "
_mouseCapture", it's not hooked up directly in the slider code (so evidently it's done via any universaljQuery UI code), so I can't say for sure it's involved, although based on the name it seems likely this it is.. How can I make an sort of multidimensional associative array in objective-c / UIKit? In any event, either
_normValueFromMouse, or possibly
_mouseCapture(or any function they call) seems to be calling any iui function inadvertently. My guess would be this iui hooks up a function with the same name as a slider/jQuery UI function, and does so after jQuery UI hooks up it's stuff, and as a result the slide calls the iui function.. Imagine if a "goSomewhere" function was defined in jQuery UI, and then called by
_mouseDrag. Normally it would job fine, although if any one (iui) defined its own "goSomewhere" function this function would be called instead by
_mouseDrag.. Alternatively, the problem might be this the slider code is calling any thing this doesn't result in navigating to ananother page normally, although does in iPhone land; however, I suspect this this isn't the case.. Hope this helps..