Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
My database takes quite some time to load (it is on network) so I thought to display a splash screen with some animation (progress bar or some simple animation) to keep the user occupied.Since it is everyone's guess when will the table open, so I can not use a timer for running the progress bar. So some animated gif is probably a better choice. However, how can I hide/free the splash screen just before the table opens (and main form shows) ???
Splash screen implementation in Delphi Splash Screen Programatically in Delphi
How to animate a GIF in a Delphi Form How to use Animated Gif in a delphi form
How to display a splash screen with a progress bar How to make a splash screen with a progress bar on Turbo Delphi?
Anything else depends on what you want to do in your application.
you can use a Ttimer and update a TprogressBar inside until the loading is over .
for the the timer use the function "on timer" put the parameter interval to 500 ms
To finish when the loading is over make the TprogressBar not visible and the timer enabled value to false and finallely show your main form
Do you load in a complete database? Then you can show progress by number of tables / records loaded.
There are lots of examples that will show you how to add a splash screen. You can either just hide the mainform and show a (modal) form as splash-screen. This form is created before the database loading starts and destroyed when it is done.
I recommend a progressbar so that the user has an idea about how long he will have to wait.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am need create feature like in iOS "Photos" system app, when you are have a list of photos and use long press to image, this collection view with images exanded, all background is blurred and has appeared popover menu, how I can create it?
I am can detect long press on collection view and add some view behind, also I am try create blur effect but can't blur all behind particular cell.
This is image of this effect effect inside system app
Your screen shot shows a context menu interaction. Since this feature already exists at framework level, and since a collection view is ready to implement it for you, I suggest you just use it rather than trying to reinvent such a complicated thing for yourself.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am using react native iOS app and I want to animate launch screen or splash screen using lottie. what should be the best way to do it.
You cant do animation on launch screen. The best approach for achieving this is by using this small trick:
Place an image on LaunchScreen
Create a view controller and place your animation in it.
Make this view controller as the entry point for your app.
Once the animation in your view controller finishes, navigate to your next view controller.
I am an iOS app developer and this is how most of us do it.
I would suggest looking into this package which contains multiple examples and best practises :
https://github.com/react-native-community/lottie-react-native
The usual way to do this is set the first frame of the lottie animation as your Splash Screen. Then create a custom react native screen as your first screen of your React Native app and place the lottie animation there. Set some delay and then navigate to your respected screen. For lottie animation, use this library:
https://github.com/lottie-react-native/lottie-react-native
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
I'm facing a problem when i try to run my app it show for less that a second then switch to a white screen written on it "hello world"
this is a new project i just change the background
iOS apps use a Launch Screen whilst loading the app, then they will load the default view controller/storyboard.
In your case here, your launch screen has a purple background and is only shown for a short time until the app initializes and shows it's first screen.
The "Hello world" page is your initial view controller of your app. You either need to modify this UIViewController or change the starting view controller to another one.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I have list of mail items in one View and I have nav bar button "New" to create new message.
All samples I've seen online say that this "new message" screen should be modal. We open it, write message and send it. Thats it. Since there is no navigation from this screen - it's use case typical modal view.
But I find that I really like "Push" this view. I get title for free, I get back button for free, I can add "Send" button to preconfigured title bar.
In code I can do "pop" on navigations stack after entered message processed. What's bad about it? So, it sounds like it should be modal but "push" much easier to do via storyboard.
According to Apple's Human Interface Guidelines:
Use a modal view when you need to offer the ability to accomplish a
self-contained task related to your app’s primary function. A modal
view is especially appropriate for a multistep subtask that requires
UI elements that don’t belong in the main app UI all the time.
Modal Views
This is largely a preference thing and depends upon what you are trying to accomplish and whether you care if the user explicitly acknowledges his edits or not (i.e. save/cancel). It sounds like you have a reasonable case for push in your example so I would go with that. If you find that you are moving toward implementing features of a modal VC while using a push, then switch over to modal. I do not believe there is a hard and fast rule for this.
The following answer provides some additional nice reasons to go modal or push
Modal vs. Push
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
I want to put a feedback form in a view in my IOS application.
There will be 2-3 smiley images. Initially they will be in grey color. When you tap one of them, it will be colored, and the rest stays grey. They will work like radio buttons in HTML.
And there will be 5 questions.
So, what is the best way to handle this feedback form in a native IOS application?
Thank you.
In my opinion the best and most simple way would be to do it with an embedded html page. This is great if you already have such a page for the web version.
Another way would be a custom made form in a xib, with custom buttons, but in order for you to actually receive that feedback, you would need to somehow send the data trough a scripted page (php, asp or whatever you like).
I've done similar things and I used the second suggestion I gave you but in my case it was different, because that form had to be presented over an existent view with animation and so on. What I would recommend you is the first one, with the web page.
I think you can use the xib to create the view with the question text and buttons for answer options. The buttons can have the smiley images as background image.
Then you can change the image for the smiley on button click for the button state selected. and may be have another button to confirm answer and move to next question that is refresh view with new question text.
Hope this helps.