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 3 years ago.
Improve this question
I'm making an iPhone app that primarily focuses on loading webpages in UIWebviews. To show the user that the web page is currently loading, I'd like the screen to display a loading animation while the page loads, similar to the eBay app:
How can I do this? Or, at least, what UIWebView methods could I use to tell me if the page is loading and that there is internet connection (so it's not blindly trying to load forever).
You can use MBProgressHUD, a open source component which will do a lot of the work for you.
You'll need to create a delegate of the UIWebView and respond to the didStartLoading and didFinishLoading messages (that's when you'll show an hide the progress view).
A simple way is just having it there until you need it and setting the alpha from 0 to 1.
You would just need a gray thing (or whatever that thing is) and a activity indicator.
You could also dig into the alerts section in apple but I think the above is easier.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 12 months ago.
Improve this question
I am building a flutter app where i use some flutter-animations tag like hero tag which is useful to take a picture from one screen to another using smooth animation. Now i wonder, when we see animations which are not like an image to shows in just one go but it shows in frame by frame and for every frame flutter change it's state then it must be slow down the performance of app in my opinon. What you say sir?
Yes. But by that same logic, showing anything on the screen also slows the app down. Why even have an image at all? Why not just display an empty screen?
So clearly, the real question is: is the tradeoff worth it, does it make your app drop below 60 fps or whatever you are targeting? Does adding an animation make your app easier to use and more polished? In almost all cases, the answer is yes, adding animations is well worth it.
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 3 years ago.
Improve this question
I want to launch video in custom video player when user click on clink in uiwebview in iphone.
Currently video is played in the default as player as soon as link in clicked.
Thanks in advance
See the UIWebViewDelegate documentation and in particular the webView:shouldStartLoadWithRequest:navigationType: method.
You can use that to intercept the click on the link. You will then need to determine if the request is for video or not. If it is for video, return NO from the method to prevent the UIWebview standard behaviour and instead, launch your own custom player.
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 want to add subtitles inside a video programmatically. Can we dynamically add subtitles to video. Any help will be appreciated.
Hmm... I had a similar problem when i wanted to display metadata information.
I ended up creating a view overlay and putting the metadata there.
I dont think i encountered any other way in the documentation.
You are going to have a lot more trouble though. If you have a video file, you are going to have to check if a particular point in the video had been reached, and then update the string being shown on the overlay.... Might be a little messy.
Stand by for the smarter ones to come up with a better answer. :)
The best thing you can do here is add an overlay view and you will be done, i don't think that the movie player class must be having any property or method to add subtitles so adding an overlay view is the best option.
You can try embedding subtitle directly to the video and play it.
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 5 years ago.
Improve this question
Apple requires you to make your app work nicely, whether iAds are available or not, which makes perfect sense. What I'm wondering about is the transition between those two states.
Should I create a view that has a space for an iAd and push it to the screen. If no iAds are available, I then have to remove the ADBannerView once the view is shown.
Or, should I create a view that has no space for an iAd in the first place and create such a space whenever an iAd finished loading?
Apple seems to use the first scenario. But I find it visually more appealing when the Ads slide in, once they are loaded rather than sliding out a failed ad. What do you think? Is there any reason not to go for the second scenario?
The second approach seems reasonable and more pleasing. It comes with a cost on the implementation / design side. If this doesn't matter, go for it.
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 5 years ago.
Improve this question
So I have an Application that involves sending emails through an API. What I would like is that to have the same or similar to compose email interface available on the phone already.
Unfortunately in all apples Goodness there is no view that just does that.
[AppleComposeMailViewController alloc];
Would do the trick nicely.
So I have started down the strategy of using a UItableViewController. I have had sucess until i try and Add a dynamically expanding cell on the end for Content.
Should I keep down this path or try implementing from the UIScrollView Base?
If the Table view is the way to go how would i go about getting a TextView into the Last cell that expands as a user types.
IF I go UIScrollView, what are some strategies i can use to make implementing the top table like views easier.
In App Email is available in iPhone OS 3.0 and should do just what you describe. Check out MessageUI.
check out the great 'e-mail' composer in the Three20 framework (screenshot)