Hi everybody! I tried this library and it works properly on example project, but when i try to paste the code on my project to try it, i got this error:
Mp is page, in a code module. This is the code:
B4X:
Application_Start
Device locale: en
Found 689 strings.
loc en
Found 688 strings.
loc IT
Application_Active
Class (b4i_richstring) instance released.
13
Error occurred on line: 163 (Build)
*** -[NSBundle initWithURL:]: nil URL argument
Stack Trace: (
CoreFoundation __exceptionPreprocess + 189
libobjc.A.dylib objc_exception_throw + 49
CoreFoundation +[NSException raise:format:] + 104
Foundation -[NSBundle initWithURL:] + 85
Foundation +[NSBundle bundleWithURL:] + 49
Tactivision +[FCAlertView getResourcesBundle] + 194
Tactivision -[FCAlertView loadImageFromResourceBundle:] + 221
Tactivision -[FCAlertView drawRect:] + 41409
UIKit -[UIView(CALayerDelegate) drawLayer:inContext:] + 491
QuartzCore -[CALayer drawInContext:] + 228
QuartzCore _ZL16backing_callbackP9CGContextPv + 72
QuartzCore CABackingStoreUpdate_ + 2890
QuartzCore ___ZN2CA5Layer8display_Ev_block_invoke + 54
QuartzCore x_blame_allocations + 109
QuartzCore _ZN2CA5Layer8display_Ev + 1367
QuartzCore -[CALayer _display] + 33
QuartzCore _ZN2CA5Layer7displayEv + 142
QuartzCore -[CALayer display] + 33
QuartzCore _ZN2CA5Layer17display_if_neededEPNS_11TransactionE + 328
QuartzCore _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 31
QuartzCore _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 334
QuartzCore _ZN2CA11Transaction6commitEv + 483
QuartzCore _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 124
CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 22
CoreFoundation __CFRunLoopDoObservers + 391
CoreFoundation __CFRunLoopRun + 1364
CoreFoundation CFRunLoopRunSpecific + 372
CoreFoundation CFRunLoopRunInMode + 123
GraphicsServices GSEventRunModal + 71
GraphicsServices GSEventRun + 80
UIKit UIApplicationMain + 148
Tactivision main + 140
libdyld.dylib start + 1
)
SignalHandler 6
Mp is page, in a code module. This is the code:
B4X:
Sub BuildDel_Click
Dim send As ImageView = Sender
Dim map As Map = send.Tag
Dim P As Panel
P.Initialize("")
P.Color = Colors.LightGray
'
' Dim i As ActionSheet
' Dim l As List = Array As String("Modifica nome","Modifica descrizione","Elimina build")
' i.Initialize("selecWeapon",Utils.Tr("ut_116"),"","",l)
' i.Show(send)
' Wait For selecWeapon_Click (Item As String)
' If l.IndexOf(Item) = 1 Then
Dim Alert As AlertView
Alert.Initialize("Alert",mp)
'
Alert.BounceAnimations = True
Alert.AnimateAlertInFromTop = True
Alert.AnimateAlertOutToBottom = True
Alert.AutoHideSecond = 10
Alert.Title = "Image"
Alert.Subtitle = "At the top you can see a custom image"
' Alert.CustomImage = LoadBitmap(File.DirAssets,"happy.png")
Alert.DoneButtonTitle = "Ok, thats nice ..."
Alert.ColorScheme = Colors.Black
Alert.Show
' End If
End Sub