I currently have an app that is entirely written in HTML, CSS, and Javascript. I simply use a browser to display the HTML file. It's going well, but I have two concerns with the app.
1. Rubberbanding
Rubberbanding is when you scroll to the very bottom of the page and the browser shifts up, revealing the grey background. I hope that makes sense. It's hard to explain. Either way, I'm curious as to how to get that to stop. I've been reading online that I should add "UIWebViewBounce" to the .plist file and set its value to "NO". However, that did not work.
2. Launch Screen
So, whenever I launch my app, I am met with a launch screen... which is fine. However, after the launch screen, there is a page that shows "main.txt" in the header and then the browser finally shows. I was curious how to remove the quick screen that shows "main.txt". It's not a major thing, it only lasts a few seconds, but it doesn't seem very professional.
Browser Rubberbanding and Launch Screen?
-
- Posts: 42
- Joined: Wed Jul 29, 2015 3:53 pm
- My devices: Ipad
Iphone
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: Browser Rubberbanding and Launch Screen?
SET TOOLBAR OFF command does not turn off the top toolbar?
-
- Posts: 42
- Joined: Wed Jul 29, 2015 3:53 pm
- My devices: Ipad
Iphone
Re: Browser Rubberbanding and Launch Screen?
It does while the app is running... but for a quick second before the app starts, it shows the "main.txt" really fast before launching into the app. I just want to skip that because it seems a little unprofessional.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: Browser Rubberbanding and Launch Screen?
The image which is the top toolbar is a part of the project, you can replace it to something less visible.
Or you can rename your "main.txt" to "loading..." to make it looking more logic for users
Or you can rename your "main.txt" to "loading..." to make it looking more logic for users
-
- Posts: 42
- Joined: Wed Jul 29, 2015 3:53 pm
- My devices: Ipad
Iphone
Re: Browser Rubberbanding and Launch Screen?
what about the rubberbanding effect? I've been reading up, and all I can find is to add the following code:
However, I don't know Objective-C. So I don't know where to place this.
Code: Select all
UIScrollView* sv = nil;
for(UIView* v in myWebView.subviews) {
if ([v isKindOfClass:[UIScrollView class] ]) {
sv = (UIScrollView*) v;
sv.scrollEnabled = YES;
sv.bounces = NO;
}
}
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: Browser Rubberbanding and Launch Screen?
I have no comments on it.
- GeorgeMcGinn
- Posts: 435
- Joined: Sat Sep 10, 2016 6:37 am
- My devices: IPad Pro 10.5in
IMac
Linux i386
Windows 7 & 10 - Location: Venice, FL
- Flag:
- Contact:
Re: Browser Rubberbanding and Launch Screen?
Wesley,
Last week I tested my File Compare in XCode 8.2, and it displays the non-matches in a browser. I have not seen what you are describing in my app. I am testing it in iOS 10.3. and simulating various iPads. (my iMac is an eary 2008 and was made obsolete by Apple 8 months ago, so it will not allow me to install XCode 9.2, or the High Sierra OS).
What simulators are you using? IPad? IPhone?
Next time I am in XCode, I will see where your code can be used. There are some spots where if my recollection is correct, you should be able to add that code. I am actually looking at writing a SWIFT or Objective-C, since the AV Foundation Framework is loaded by the SDK, to try and access songs from the user's iTunes account and download them to a directory or into the Clipboard before calling the smartBASIC program. That should be possible. By using the Clipboard to pass the directory name where the songs were loaded, or loading the songs directly to the Clipboard, when the SB program starts, it is available to it.
Anyway, that is another issue that will probably require similar changes to where you will need to insert that code, if it is correct and will work. But you might want to look at the UI ... BACk statements SB already uses. Maybe one of them can be used to accompish what you need.
What about using some of the UI Background with a graphic file that is the color you are expecting.
This is an example, but there are these BACK statements for TOOL_BAR, FILE, FILES, etc. Check the documentation under the
Also, what does this do, and would it help?
Last week I tested my File Compare in XCode 8.2, and it displays the non-matches in a browser. I have not seen what you are describing in my app. I am testing it in iOS 10.3. and simulating various iPads. (my iMac is an eary 2008 and was made obsolete by Apple 8 months ago, so it will not allow me to install XCode 9.2, or the High Sierra OS).
What simulators are you using? IPad? IPhone?
Next time I am in XCode, I will see where your code can be used. There are some spots where if my recollection is correct, you should be able to add that code. I am actually looking at writing a SWIFT or Objective-C, since the AV Foundation Framework is loaded by the SDK, to try and access songs from the user's iTunes account and download them to a directory or into the Clipboard before calling the smartBASIC program. That should be possible. By using the Clipboard to pass the directory name where the songs were loaded, or loading the songs directly to the Clipboard, when the SB program starts, it is available to it.
Anyway, that is another issue that will probably require similar changes to where you will need to insert that code, if it is correct and will work. But you might want to look at the UI ... BACk statements SB already uses. Maybe one of them can be used to accompish what you need.
What about using some of the UI Background with a graphic file that is the color you are expecting.
SET UI GRAPHICS BACK N$
sets graphics window background from file [n$].
OR
SET OUTPUT BACK COLOR R,G,B
sets text output window background color to value with red [r], green [g] and blue components. Valid values are from 0 to 1.
This is an example, but there are these BACK statements for TOOL_BAR, FILE, FILES, etc. Check the documentation under the
Also, what does this do, and would it help?
SET UNDERGROUND OFF
SET UNDERGROUND ON
turns OFF or turns ON program activity in background. By default is off.
George McGinn
Computer Scientist/Cosmologist/Writer/Photographer
Member: IEEE, IEEE Computer Society
IEEE Sensors Council & IoT Technical Community
American Association for the Advancement of Science (AAAS)
Computer Scientist/Cosmologist/Writer/Photographer
Member: IEEE, IEEE Computer Society
IEEE Sensors Council & IoT Technical Community
American Association for the Advancement of Science (AAAS)