iOS Question Views disappearing from layout

tsteward

Well-Known Member
Licensed User
Longtime User
I swear this is actually happening.
I add additional views to my layout and save it.
I re-open the layout and check and they are still there.
I close ide completely
Reopen ide, reload project, reload layout and they are still there.
Click on the play icon to compile and run app on iphone and the recently added views are gone.
I have cleaned the project and done it all again - same problem.

Whats going on please, what stupid thing am I doing?
 

hatzisn

Expert
Licensed User
Longtime User
You do not make clear if they are disappearing in screen when the application runs or when you open the layout designer again.

If it is the first maybe some kind of script in the layout designer script or you may have designed it for a specific variant? An other thing that happened to me in runtime is that I copied a layout from B4A to B4i and obviously the images did not have the corresponding image files available, so what happened was that I thought they were gone but they were there with no image to show...

If it is the second maybe a synchronization in OneDrive, Google Drive, Dropbox, or what else with a colleague of yours in your work?
 
Upvote 0

tsteward

Well-Known Member
Licensed User
Longtime User
Okay when I run the app it crashes saying that the view was not initialised. I then check the designer and sure enough the view has disappeared.
The project lives in my C drive so it's not synced anywhere but that's exactly what it feels like it's happening. It feels like a bad sync
 
Upvote 0

tsteward

Well-Known Member
Licensed User
Longtime User
I can't upload the project.
I have tried copying it to a different directory straight off c:\myproject so I know no syncing can possible be happening.

See video below where pnlRekey, btnDirection and pnlCutting all disappear.

 
Upvote 0

tsteward

Well-Known Member
Licensed User
Longtime User
Ive copied to completely different drive, update the layout.
Saved the file
Closed the ide
Opened the ide and its all still there
Run the app and BOOM all changes are gone.

I can't write my program any more
 
Upvote 0

Alexander Stolte

Expert
Licensed User
Longtime User
Maybe:
-A backup tool that undoes the changes like onedrive, dropbox nextcloud, github?
-A CustomBuildAction that is somewhere in the code?
-The designer double open with the same layout?
-If you open the Designer normally via “Designer” instead of via the form name, is that also the case?
-all required libraries checked in the lib. tab?
 
Upvote 0

tsteward

Well-Known Member
Licensed User
Longtime User
Maybe:
-A backup tool that undoes the changes like onedrive, dropbox nextcloud, github?
No backup tool is used and its not in a ondrive, google drive, or dropbox directory
-A CustomBuildAction that is somewhere in the code?
No custombuild action. I wouldn't even know how
-The designer double open with the same layout?
No its not double open
-If you open the Designer normally via “Designer” instead of via the form name, is that also the case?
Yes
-all required libraries checked in the lib. tab?
Yes

I can add views and retain them in B4A just not B4I
 
Upvote 0

tsteward

Well-Known Member
Licensed User
Longtime User
I can't reproduce it in a sample app it works fine.
This project is my life so I can't upload it here.
Can I zip it and send it to one of you two gentlemen to have a look at it for me privately?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…