Attachments
Last edited:
Application_Start
Application_Active
Error occurred on line: 111 (anotherdatepicker)
*** -[__NSArrayM objectAtIndex:]: index 4294967295 beyond bounds [0 .. 11]
Stack Trace: (
CoreFoundation <redacted> + 150
libobjc.A.dylib objc_exception_throw + 38
CoreFoundation <redacted> + 230
B4i Example -[B4IActionSheetDelegate actionSheet:clickedButtonAtIndex:] + 106
UIKit <redacted> + 170
UIKit <redacted> + 46
UIKit <redacted> + 152
UIKit <redacted> + 168
UIKit <redacted> + 116
UIKit <redacted> + 120
UIKit <redacted> + 308
UIKit <redacted> + 184
UIKit <redacted> + 70
QuartzCore <redacted> + 234
libdispatch.dylib <redacted> + 22
libdispatch.dylib <redacted> + 712
CoreFoundation <redacted> + 8
CoreFoundation <redacted> + 1512
CoreFoundation CFRunLoopRunSpecific + 476
CoreFoundation CFRunLoopRunInMode + 106
GraphicsServices GSEventRunModal + 136
UIKit UIApplicationMain + 1440
B4i Example main + 116
libdyld.dylib <redacted> + 2
)
Public Sub ShowPage
If Not(myPage.IsInitialized) Then
myPage.Initialize("Page")
myPage.RootPanel.LoadLayout("ShowTask")
adp.Initialize(Me, "adp")
adp.AddToParent(myPage.RootPanel, btnCreated)
adp.SetDate(DateTime.Now, True)
End If
Main.NavControl.ShowPage(myPage)
End Sub
Public Sub AddToParent(ACT As Panel, btn As Button)
.
.
ACT.AddView(holder, 0, 0, 100%x, 100%y)
.
.
Sub Page_Resize(Width As Float, Height As Float)
If Not(adp.IsInitialized) Then
adp.Initialize(Me, "adp")
adp.AddToParent(myPage.RootPanel, btnCreated)
adp.SetDate(DateTime.Now, True)
End If
End Sub
'All variants script
AutoScaleAll
Base.HorizontalCenter = 50%x
Base.VerticalCenter = 50%y
Sub Class_Globals
.
.
Private Parent As Panel
End Sub
Public Sub AddToParent(ACT As Panel, btn As Button)
Parent = ACT
.
.
End Sub
Public Sub holder_Resize(Width As Float, Height As Float)
holder.Width = Parent.Width
holder.Height = Parent.Height
' Let's center this thing on the page while we are here
Base.Top = (Parent.Height - Base.Height) / 2
Base.Left = (Parent.Width - Base.Width) / 2
End Sub
adt.Initialize(Me,"Date")
adt.AddToParent(Page_EditAccount.RootPanel,btnDate)
adt.SetDate(DateTime.Now,True)