Home User CP Donate Chat Register Today!  
  Get New posts Faq / Help?
   


Go Back   Hackint0sh > Projects and Hacks > iPhone > Applications & Development > iPhone Developer Exchange

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-24-2009, 07:40 PM
truehybridx
Status: Online
Respected Member
 
Join Date: Nov 2007
Posts: 992
Rep Power: 51
truehybridx is on a distinguished road
Default no kind of indicator works

hi im making a tabbar app that has several webviews on it and im trying to get a network indication or activity indication to work but for some reason neither webViewDidStartLoad or webViewDidFinishLoad are being called as the pages load...

heres a snippet of my project, if anyone needs more info to help me ill package more of it




Code:
//First View Controller.h

#import 


@interface FirstViewController : UIViewController  {
	UIWebView *lei;
	UIActivityIndicatorView *activityIndicator;
}
@property(nonatomic,retain) IBOutlet UIWebView *lei;
@property(nonatomic,retain) IBOutlet UIActivityIndicatorView *activityIndicator;

-(IBAction) goBack:(id)sender;
-(IBAction) goRefresh:(id)sender;

@end


//First Vier Controller.m

#import "FirstViewController.h"


@implementation FirstViewController

@synthesize lei, activityIndicator;


-(void)viewDidLoad {
	[super viewDidLoad];
	NSString *urlAddress = @"http://website.com";
	
	NSURL *url = [NSURL URLWithString:urlAddress];
	NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
	
	[lei loadRequest:requestObj];
	
}

-(IBAction) goBack:(id)sender {
	[lei goBack];
}
-(IBAction) goRefresh:(id)sender {
	NSString *urlAddress = @"http://website.com";
	
	NSURL *url = [NSURL URLWithString:urlAddress];
	NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
	
	[lei loadRequest:requestObj];
	
}

-(void)webViewDidStartLoad:(UIWebView *)lei {
	[self.activityIndicator startAnimating];
	
}
-(void)webViewDidFinishLoad:(UIWebView *)lei {
	[self.activityIndicator stopAnimating];
	
}


- (void)didReceiveMemoryWarning {
	
    [super didReceiveMemoryWarning];
	
}

- (void)viewDidUnload {

}


- (void)dealloc {
    [super dealloc];
}

@end


//AppDelegate.h

#import 

@interface LeiAppAppDelegate : NSObject  {
    UIWindow *window;
    UITabBarController *tabBarController;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UITabBarController *tabBarController;

@end


//AppDelegate.m

#import "LeiAppAppDelegate.h"


@implementation LeiAppAppDelegate

@synthesize window;
@synthesize tabBarController;


- (void)applicationDidFinishLaunching:(UIApplication *)application {
	sleep(0);
	
    [window addSubview:tabBarController.view];
}


- (void)dealloc {
    [tabBarController release];
    [window release];
    [super dealloc];
}

@end
__________________
Download LEI Mobile and stay in touch with Limited Edition iPhone!! http://limitededitioniphone.com/software/

iPhone 3GS - 3.0 T-Mobile
Computers:
Dell i545s
Operating Systems:
Windows Vista
OSX Leopard (iDeneb 10.5.8)

MacBook5,2
OSX Leopard 10.5.8
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
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
AppleInsider: Maine's expanded MacBook program the 'largest of its kind' hackint0sh Latest Headlines 0 06-30-2009 08:30 PM
[1.1.4] [iLiberty] Please can you help me decipher what kind of iphone i have - iLibe igmolinav Older Software Unlock Solution 5 07-19-2008 06:41 PM
[Advice] what kind of coding language...for 3rd party apps? saxosuper1600 Free Toolchain Software 1 03-25-2008 08:54 PM
Photos application running weird... Like some kind of bug... JCMA90 General 2 12-06-2007 02:47 PM
Anyone kind enough to post an unpatched baseband firmware? jyavenard General 3 09-06-2007 09:38 AM



All times are GMT +2. The time now is 12:18 AM.



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2 Ad Management by RedTyger
follow us on Twitter!

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105