iOS Question Colors are wrong ????

cooperlegend

Active Member
Licensed User
Longtime User
Hi I just recompiled my (previously working) code and found that green is now cyan and yellow is now white ???? This is when creating a customlistview - add the list items.

No idea what is going on, if I re-download the Apple store version it is working.

I am still on 3.01 currently, not sure if that is the issue or not.

Anyone else had this issue?


code below

Sub CreateListItem(Text As String, Width As Int, Height As Int, bAnswered As Boolean) As Panel
Dim p As Panel
p.Initialize("")
If bAnswered == True Then
p.Color = Colors.Green
Else
p.Color = Colors.Yellow
End If
Dim lblListItem As Label
lblListItem.Initialize("Label")
lblListItem.Text = Text
lblListItem.Color = Colors.Transparent
lblListItem.TextColor = Colors.Black
lblListItem.TextAlignment = lblListItem.ALIGNMENT_LEFT
lblListItem.Font = lblTitle.Font
lblListItem.AdjustFontSizeToFit = True
lblListItem.Multiline = True
p.AddView(lblListItem, 0, 0, Width, Height)
Return p
End Sub
 

cooperlegend

Active Member
Licensed User
Longtime User
I have been looking at this all afternoon to try and figure out what the issue is.....

My conclusion is that the remote Mac Builder has an issue. Erel please investigate asap

I have simplified the issue below with some test code.

Dim cGreen As Int = Colors.Green
Dim p As Panel
p.Initialize("")
p.Color = cGreen

Looking in debug at this code it reports back 0xFF00FF00 for cGreen (correctly) but when p.Color is set it shows 0xFF00FFFF (This is the colour Cyan) which is then passed to the Customlistview and displays the colour Cyan instead of Green.

No code has changed in my project so it must be the Remote Mac Builder Host.
 
Upvote 0

cooperlegend

Active Member
Licensed User
Longtime User
Re the "code" bit, I couldn't find a icon in the top formatting bar for this, could you add one as I couldn't remember that is was "code" for this otherwise I would have used it
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…