Flo
Dec 20, 2019 11:20
Is anyone around ?
Flo
Dec 20, 2019 11:20
Please help me with an InputStream to read a header from it.
Flo
Dec 20, 2019 11:20
Hello guys !
Flo
Dec 18, 2019 14:41
Hi guys ! Can anyone help me please with this issue ?
https://stackoverflow.com/questions/59388885/nwconnection-skip-bytes-from-response-received-from-server
Flo
Nov 1, 2019 12:05
I have a CanvasView (UIView customised) where the user can draw inside a signature. But if there is no signature then I want to make it height size to be 0 and to reduce the size of my cell. The problem is that I can’t add a hardcoded NSHeightConstraint because when I rotate the screen or I run the app on iPad the size of that view will be automatically resized.
Is there any solution for this ?
Flo
Nov 1, 2019 12:05
Anyone around here to help me to hide an UIView ?
Flo
Nov 1, 2019 12:04
Hi guys
 

[iOS][Android][ChaosOverFlow]

Join to become part of the community, not to simply ask questi...
Flo
Dec 18, 2019 14:41
Hello ! Can anyone help me please with this issue ?
https://stackoverflow.com/questions/59388885/nwconnection-skip-bytes-from-response-received-from-server
Flo
Nov 28, 2019 15:20
@PranavKasetti this sounds amazing.
Flo
Nov 25, 2019 10:02
Good morning. Can anyone help me with a question regarding CoreData ?
Flo
Nov 1, 2019 12:06
I have a CanvasView (UIView customised) where the user can draw inside a signature. But if there is no signature then I want to make it height size to be 0 and to reduce the size of my cell. The problem is that I can’t add a hardcoded NSHeightConstraint because when I rotate the screen or I run the app on iPad the size of that view will be automatically resized.
Is there any solution for this ?
Flo
Nov 1, 2019 12:06
Hello guys !
 

Tamil iOS and Web Developers

We will help what you need! Note: This room is not only for Ta...
Flo
Nov 25, 2019 10:02
Good morning. Can anyone help me with a question regarding CoreData ?
 

Discussion between Rob and Flo

Imported from a comment discussion on stackoverflow.com/questi...
Flo
Oct 31, 2019 21:57
Have a great day !
Flo
Oct 31, 2019 21:57
Thank you so much !
Flo
Oct 31, 2019 21:56
Was a nightmare in my project where I had canvasViews for signatures
Flo
Oct 31, 2019 21:56
I don't use anymore that canvas parameter everywhere
Flo
Oct 31, 2019 21:56
This is amazing
Flo
Oct 31, 2019 21:51
I check right now !
Flo
Oct 31, 2019 21:51
Thank you !!!
Flo
Oct 31, 2019 21:51
Omg !
Flo
Oct 31, 2019 21:26
Thank you !
Flo
Oct 31, 2019 21:25
Now I locked that ViewController on Portrait mode only just to avoid this issues
Flo
Oct 31, 2019 21:24
And to care about if the user rotate the screen
Flo
Oct 31, 2019 21:24
I don't need to worry about a lot of parameters
Flo
Oct 31, 2019 21:24
Exactly
Flo
Oct 31, 2019 21:24
Will take me 1 month
Flo
Oct 31, 2019 21:24
Do you think you can help me with this refactoring ?
Flo
Oct 31, 2019 21:22
To be able to run the app also on iPad ?
Flo
Oct 31, 2019 21:22
Is possible somehow to do the rescaling directly in the CanvasView ?
Flo
Oct 31, 2019 21:19
From where that values...
Flo
Oct 31, 2019 21:19
cell.reviewCanvas.bounds: (0.0, 0.0, 414.0, 200.0)
Flo
Oct 31, 2019 21:18
After that the size is going crazy
Flo
Oct 31, 2019 21:18
First time have this values from the Storyboard
Flo
Oct 31, 2019 21:18
Yes is different
Flo
Oct 31, 2019 21:18
Flo
Oct 31, 2019 21:15
Flo
Oct 31, 2019 21:08
I know they are not close :( In my small project they are exactly where they should be.
Flo
Oct 31, 2019 21:07
Do you think you can help me to rescale the CGPoints here?

func parseScribbleData(_ bytes: [UInt8]) -> [[CGPoint]] {

guard bytes.count % 2 == 0 else {
print("The scribble data is corrupted: odd number of bytes")
return []
}

var result = [Scribble]()
var current: Scribble? = nil
var index = 0

while index <= bytes.count - 2 {
let x = bytes[index]
let y = bytes[index + 1]
let hasMarker = y & Scribble.yMarkerBitmask == Scribble.yMarkerBitmask
let point = CGPoint(x: CGFloat(x), y: CGFloat(y & ~Scribble.yMarkerBitmask))
Flo
Oct 31, 2019 21:06
And all of this because I'm using that canvas parameter to that function. And I don't know how to replace it or to do the rescaling when I deserialise.
Flo
Oct 31, 2019 21:06
Not when the view is loaded.
Flo
Oct 31, 2019 21:05
Which is called when the cell is refreshed
Flo
Oct 31, 2019 21:05
Im doing the rescale in a function called in the cellForRowAt
Flo
Oct 31, 2019 21:05
This is why I think is because I don't rescale the CGPoints in the right place.
Flo
Oct 31, 2019 21:04
But I want that CGPoints to be there from when I review the report.
Flo
Oct 31, 2019 21:04
If I click the row 2 times will refresh the canvas and I will get the CGPoints in almost the same position
Flo
Oct 31, 2019 21:03
Here is a capture from the main project: recordit.co/VLbGY41OtD
Flo
Oct 31, 2019 21:01
Stroking true: [(123.4375, 26.5625), (123.4375, 26.5625)]
Flo
Oct 31, 2019 21:01
when I deserialize back I have:
Flo
Oct 31, 2019 21:01
When I serialize I have this values in array (using only a simple dot somewhere on the screen ):
Stroking true: [(124.33332824707031, 27.0), (124.33332824707031, 27.0)]