B4A Library [B4X] [XUI] AS WheelPicker - a modern single/multiple choice picker view - based on xCustomListView

angel_

Active Member
Licensed User
I have the same problem (iOS 12.5.2)

B4X:
Application_Start
*** mainpage: B4XPage_Created
*** Assertion failure in -[UIImpactFeedbackGenerator initWithConfiguration:coordinateSpace:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKitCore/UIKit-3698.140/UIFeedbackGenerator.m:124
Error occurred on line: 87 (ASWheelPicker)
Invalid configuration class (null) for generator <UIImpactFeedbackGenerator: 0x280671440: prepared=0>
Stack Trace: (
  CoreFoundation       <redacted> + 252
  libobjc.A.dylib      objc_exception_throw + 56
  CoreFoundation       <redacted> + 0
  Foundation           <redacted> + 112
  UIKitCore            <redacted> + 372
  UIKitCore            <redacted> + 192
  UIKitCore            <redacted> + 84
  CoreFoundation       <redacted> + 144
  CoreFoundation       <redacted> + 292
  B4i Example          +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1608
 B4i Example          -[B4INativeObject RunMethod::] + 216
 B4i Example          -[b4i_aswheelpicker _initialize::::] + 1364
 CoreFoundation       <redacted> + 144
 CoreFoundation       <redacted> + 292
 B4i Example          +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1608
 B4i Example          -[B4IShell runMethod:] + 448
 B4i Example          -[B4IShell raiseEventImpl:method:args::] + 2172
 B4i Example          -[B4IShellBI raiseEvent:event:params:] + 1580
 B4i Example          -[B4ICustomViewWrapper AfterDesignerScript] + 1828
 B4i Example          -[B4ILayoutBuilder loadLayout:::] + 2696
 B4i Example          -[B4IPanelWrapper LoadLayout::] + 204
 B4i Example          -[B4XViewWrapper LoadLayout::] + 100
 B4i Example          -[ResumableSub_b4xmainpage_B4XPage_Created resume::] + 676
 B4i Example          -[b4i_b4xmainpage _b4xpage_created::] + 548
 CoreFoundation       <redacted> + 144
 CoreFoundation       <redacted> + 292
 B4i Example          +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1608
 B4i Example          -[B4ICommon CallSubDebug4::::] + 1080
 B4i Example          -[B4ICommon CallSubDebug2::::] + 372
 B4i Example          -[b4i_b4xpagesmanager _createpageifneeded::] + 1152
 B4i Example          -[b4i_b4xpagesmanager _showpage::] + 828
 B4i Example          -[b4i_b4xpagesmanager _addpage:::] + 1428
 B4i Example          -[b4i_b4xpagesmanager _addpageandcreate:::] + 640
 B4i Example          -[b4i_b4xpagesmanager _initialize:::] + 1892
 B4i Example          -[b4i_main _application_start:] + 700
 CoreFoundation       <redacted> + 144
 CoreFoundation       <redacted> + 292
 B4i Example          +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1608
 B4i Example          -[B4IShell runMethod:] + 448
 B4i Example          -[B4IShell raiseEventImpl:method:args::] + 2172
 B4i Example          -[B4IShellBI raiseEvent:event:params:] + 1580
 B4i Example          __33-[B4I raiseUIEvent:event:params:]_block_invoke + 60
 libdispatch.dylib    <redacted> + 24
 libdispatch.dylib    <redacted> + 16
 libdispatch.dylib    <redacted> + 1068
 CoreFoundation       <redacted> + 12
 CoreFoundation       <redacted> + 1924
 CoreFoundation       CFRunLoopRunSpecific + 436
 GraphicsServices     GSEventRunModal + 104
 UIKitCore            UIApplicationMain + 212
 B4i Example          main + 128
 libdyld.dylib        <redacted> + 4
)
Application_Active
In Ipad (iOS 14.4.2.), it works fine
 

Alexander Stolte

Expert
Licensed User
ok, i did it, it is the "soft" variant of the vibrate, this is IOS 13+, i changed i to 0 = light.
Please redownload the lib.

i am currently working on an update to cover another usecase with this view, but currently i still have problems with the ListView at B4A. But I am confident to fix this in the next days.
 

Alexander Stolte

Expert
Licensed User
Big Update
2.00

  • Better Handling if you set an invalid wheel_index as parameter to the functions
  • Add get TopFadePanel
  • Add get BottomFadePanel
  • Fade Panels are now above and under the selector panel
  • Add Next - scrolls to the next item, jump to the last item if the next item is out of index

    • ezgif.com-gif-maker.gif
  • Add Previous - scrolls to the previous item, jump to the last item if the previous item is out of index
  • Add set CornerRadius - sets the corner radius of the view
    • Add Designer Property CornerRadius
  • SnapIn Improved - Immediately snaps into place without moving again
  • BugFixes
  • new depency: XUIViews, is needed for the HapticFeedback
Example Project with the new features you can find here

A backup with the previous version in case of problems, you can find in the 1st post.
 
Top