using web view in iphone - iphone

this might sound silly but since i am new to iPhone i wanted to ask this question... :P
Where is the UIWebView best used? I mean which type of application?
Could i use that if i wanted to display a video in some part of the screen rather than fullscreen which MPmediaPlayer is really good at?
Thanks :)

The only places I have seen UIWebView really used in a way that is right is for help pages. Developers will make this page call a FAQ page hosted on their servers so that they can change the contents frequently without going back to Apple for review.

Related

Best way to convert this flash application to iphone compatible?

I have an interactive flash animation which i need to be able to use on an iPhone, embedded within an iPhone app.
I'm not able to link the animation here but a screenshot of the interface (which is pretty self explanitory) can be found here - http://imgur.com/i4bUgTB
It's a very simple interaction with just dragging answers into boxes and checking whether the answers are correct. My question is what would the easiest/best way to convert this to something that can be used on the iPhone?
My initial thoughts would be to use Canvas but i've not looked deeply into what it can do so I was hoping that someone could point me in the right direction.
Thanks for your advice.
Flash embeds logic inside it via scripts. What you are referring to is not an "animation" but a working application.
You should check this link if you use Actionscript 3, I never did that myself.
If the scenario of the app is as you describe, then using your flash sources inside your iOS app shouldn't be too difficult to achieve IMHO.

Create .swf within iPhone app

Can't find anything about this anywhere (maybe there's a good reason...) - does anyone know if there are any libraries for creating simple SWFs in iOS? I'd like to be able to let the user build a simple animation, then email it off as a SWF. If it's not possible, I'll probably go down the animated gif route.
Thanks for any help!
You might use libsswf which has a c interface.
Check here.

Page-Based app load epub

I am new to iphone app developing and need to display an epub file in an app that I am working on. I would like to use UIPageViewController as that allows paging ect. As of yet I have not been able to figure out how to load the content into a uiwebview and still get the paging function. If someone could point me to any sample code that would help me I would greatly appreciate it.
You really can not use that, since you need ot use UIWebView. I do not think that any other view offers enough of a head start to make it worth it not to use a UIWebView.
There was a lot of discussion about this found here:
Reading ePub format
also see this:
Best approch for creating ePub reader similar to iBook or Stanza application

creating iphone app for existing site. need advice about the data I'm downloading

I'm building an iPhone app for existing site (a local news site)
Main page with articles headers, when click on them you move to the article page. Simple.
This is the first time I'm building such type of app.
I have 3 general questions, just to make sure :
For the iphone, Do we need to
re-create the website article's
pictures for the iphone ? or there
is some programming tool that on the
fly make the files looks better on
the iphone ? or maybe, there is some
technique that creates one artice
picture that looks right both for
the server and the iphone ?
Usually, Do you need to create
special data channels from the
iPhone webservice ? or programmers
just use the existing rss channels
of the webserver ?
If someone know nice artice about
this stuff, It will help a lot. just
see what other are doing.
thanks.
You can see the intent Media apps, these apps are working like what you want your app to.
1) You're better off creating mobile versions of the images. You can do image processing on the iPhone, but you'll have to have the original and that makes the whole thing pointless (ie. you have to download the whole thing.) Generate a mobile thumbnail when those are uploaded on the server.
2) RSS will do. There's a very good tutorial at cocoadevblog.com about approaching such a task (I guess this covers 75% of the work you have to do)
3) Check 2) ;-)
if your download image is bigger the the thumbnail you are trying to display,
then the problem is in your code that change the image size. check carefully what are you doing to the image after downloading it.
I would recommend to create square thumbnails of your pictures at the server level. This will allow you to easily position in the iPhone screen, plus you will not need to download the whole image from the server.
nnahum

How to change wallpaper in iPad programmatically?

How to change wallpaper in iPad programmatically?
You can't do this. The user decides what wall paper s/he wants and has one, single place to change it. You can, however, add new items to the user's saved photos list, which they can choose from when they change their wallpaper.
Apparently, it is possible: see this link:
You can save pictures to your iPad's photo album or directly to wallpaper -- a neat feature.
Quite likely, it's a private api, that only Apple can use in their iAds, but I'm still interested in how they accomplish that.
As far as I know, iAds are basically just little HTML5 web sites, so, the call would be part of the html code. It shouldn't be to difficult to figure out what's going on.