12-30-2008, 04:10 AM
#2 (permalink )
New Member
Join Date: Dec 2008
Posts: 1
good!
Thx
05-17-2009, 04:40 PM
#3 (permalink )
New Member
Join Date: May 2009
Posts: 4
helped a lot thanks
09-20-2009, 02:54 PM
#4 (permalink )
Registered Member
Join Date: Sep 2009
Posts: 69
hi... is there a simple way to add a network activity indicator??
im making a tabbar based app with several webviews but when i try to add the indicator it never works out
09-20-2009, 09:33 PM
#5 (permalink )
Registered Member
Join Date: Aug 2008
Location: Gaithersburg, MD
Posts: 178
Actually, I need more information, using a network activity should be easy
James
Last edited by jamesbrannan; 09-21-2009 at 07:52 AM .
09-21-2009, 03:13 PM
#6 (permalink )
Registered Member
Join Date: Sep 2009
Posts: 69
Quote:
Originally Posted by
jamesbrannan
Actually, I need more information, using a network activity should be easy
James
Well if u want I can post the sources of my first view controller for u to take a look, the other 3 are basically the same
it'll be a few hours from now before I have the chance
09-22-2009, 12:18 AM
#7 (permalink )
Registered Member
Join Date: Sep 2009
Posts: 69
Quote:
Originally Posted by
truehybridx
Well if u want I can post the sources of my first view controller for u to take a look, the other 3 are basically the same
it'll be a few hours from now before I have the chance
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://limitededitioniphone.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://limitededitioniphone.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
11-05-2009, 02:54 AM
#8 (permalink )
Registered Member
Join Date: Nov 2009
Posts: 10
Brilliant! Thanks
11-15-2009, 12:31 PM
#9 (permalink )
Registered Member
Join Date: Nov 2009
Posts: 10
Difficult implementation on tab view
Absolutely brilliant, thanks a million for sharing. I've followed your instructions and created an application with 2 tab views. Now what I am having problems with is trying to implement a sort of calculator on one of the views. I press the calculate button and simply nothing happens.
I had previously developed this calculator on a single view application (with no tab views) and it was working absolutely fine. Now I have been trying for days to port it to this new interface with 2 tabs but without success.
I am beginning programming for the iPhone OS and there is definitely something I am missing. I guess I'm not linking the text fields and the views correctly or something similar.
Would you be so kind to tell me what I'm doing wrong if I send you the code?
07-26-2010, 02:44 PM
#10 (permalink )
Registered Member
Join Date: Jul 2010
Posts: 138
Can someone update this for the newest SDK 4 and IOS 4. Got a bunch of errors for the newest software.
07-26-2010, 10:39 PM
#11 (permalink )
Indie Developer
Join Date: Jul 2010
Posts: 1,333
chances are it was human error as code should stay the same whether the sdk has been updated or not. What were your errors?
Quote:
Originally Posted by
rrichar
Can someone update this for the newest SDK 4 and IOS 4. Got a bunch of errors for the newest software.
02-25-2011, 08:52 AM
#12 (permalink )
Registered Member
Join Date: Feb 2011
Posts: 1
how to put tabbar in top
hello sir i want to develop application having tabbar in top with switching between tabs view please tell me the way i want to create app
Thread Tools
Display Modes
Linear Mode
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
» Advertisements
» Online Users: 260
22 members and 238 guests
@sandris , AdamL , ADY , Dani77 , diyora , FAED , fredidf , F_Bryant , GHuebner , HDshot , JasonR , mer10 , Oral B , prchn4christ , Rudy , smithdale87 , stekki , tgjorgoski , Thompson22 , Touchmint , twerner , vigu360
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,880
Threads: 89,228
Posts: 380,752
Top Poster: BrianSlick (7,129)
Welcome to our newest member, @sandris