Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-03-2008, 07:11 PM   #1 (permalink)
Registered Member
 
Join Date: Apr 2008
Posts: 59
brianr is an unknown quantity at this point
Default UIWebView using local images?

I know the UIWebView can be initialized with a string that contains html.

But, if I want to include images in the html what would I put the src= to?

Is there anyway to do this... and/or to load from an html file in my file system and then put the images in there?
brianr is offline   Reply With Quote
Old 07-03-2008, 07:28 PM   #2 (permalink)
New Member
 
Join Date: Jul 2008
Location: United Kingdom
Posts: 6
safa_uk is an unknown quantity at this point
Default Re: UIWebView using local images?

Hi brianr

here is the solution to your question, this will enable you to load your own html file into the
UIWebView
Code:
NSBundle *bundle = [NSBundle mainBundle]; 
NSString *path = [bundle bundlePath];
NSString *fullPath = [NSBundle pathForResource:@"File Name Goes here, without file type i.e (hello)" ofType:@"file type goes here with no period i.e (html)" inDirectory:path];
[NAME OF UIWebView loadRequest:[NSURLRequestrequestWithURL:[NSURLfileURLWithPath:fullPath]]];
To use this just copy and paste this all either in a button instance or any function.
It will look for the html file or other file type within the xcode project, so remember to add it in .

Hope this helps.
If you need any more help on this, don't hesitate to ask.

Safa
safa_uk is offline   Reply With Quote
Old 03-20-2009, 04:57 AM   #3 (permalink)
New Member
 
Join Date: Mar 2009
Posts: 4
ndrantotiana.rindra is on a distinguished road
Default Anyone could help me?

I am a beginner in iphone programming and I want help from you.I want to know if someone have XCode project or code to help me in building an image gallery program with zooming and control like the slideshow/gallery program in iPhone,lika MobileSlideShow.app(Photo.app).
Thank you in advance.
ndrantotiana.rindra is offline   Reply With Quote
Old 07-28-2009, 06:35 PM   #4 (permalink)
New Member
 
Join Date: Jul 2009
Posts: 1
TomSchulz is on a distinguished road
Default

Quote:
Originally Posted by ndrantotiana.rindra View Post
ndrantotiana.rindra.
Hello

I think you might be looking for pagecontrols and uiscrollviews

The sample application 'PagingScrollView' should help, and also UIPageControl and UIScrollView + class reference on google should help a lot.

Hello everyone this is my first post!
TomSchulz is offline   Reply With Quote
Old 08-10-2009, 02:54 AM   #5 (permalink)
New Member
 
Join Date: Mar 2009
Posts: 4
ndrantotiana.rindra is on a distinguished road
Default

Quote:
Originally Posted by TomSchulz View Post
Hello

I think you might be looking for pagecontrols and uiscrollviews

The sample application 'PagingScrollView' should help, and also UIPageControl and UIScrollView + class reference on google should help a lot.

Hello everyone this is my first post!
Thank you very much.
I've already seen that but I do not want to show the dots in the bottom of screen (due to UIPageControl).
ndrantotiana.rindra is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Native application implementing Local network based gaming sabedev iPhone SDK Development 3 04-17-2010 01:26 PM
UIWebView tkilmer iPhone SDK Development 3 08-15-2008 10:15 AM
Multiple views, gradient or images? MVC question ChriB iPhone SDK Development 2 07-13-2008 07:08 AM
Stretchable Images in IB jeff_lamarche iPhone SDK Development 2 05-15-2008 12:44 PM
Scroll images with user dragging alexanderMobile iPhone SDK Development 3 04-22-2008 11:11 PM


» Advertisements
» Online Users: 331
6 members and 325 guests
blueorb, guusleijsten, Kryckter, LEARN2MAKE, n00b, SLIC
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,113
Posts: 402,880
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Anwerbl
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:55 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0