Welcome to iPadForums.net Guest - Click Here to Register

Data grids? I want to be able to display a report!

This is a discussion on Data grids? I want to be able to display a report! within the iPad Development forums, part of the iPad App Store category; Okay, so I can get it to work except for the webview. I'm just trying to pull up Google in it right now. I have ...

Register with iPad Forums
+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 11 to 13 of 13
  1. #11
    iPad Fan!
    Member #
    10906
    Join Date
    Jul 2010
    Location
    United States
    Posts
    6
    Okay, so I can get it to work except for the webview. I'm just trying to pull up Google in it right now.

    I have it doing it when I click a button but it's not working. Here's my code...

    Code:
    #import "ViewController.h"
    
    
    @implementation ViewController
    
    @synthesize textField;
    @synthesize label;
    @synthesize string;
    @synthesize pictureWebView;
    
    - (IBAction)updateList:(id)sender {
        
        // Tell the UIWebView to load the page
        NSString *webLink = @"http://www.google.com";
        NSURL *webURL = [NSURL URLWithString:webLink];
        NSURLRequest *requestStory = [NSURLRequest requestWithURL:webURL];
        [pictureWebView loadRequest:requestStory];
        
        self.string = textField.text;
        NSString *nameString = string;
        
        if ([nameString length] == 0) {
            nameString = @"<";
        }
        NSString *update = [[NSString alloc] initWithFormat:@"Store # %@", nameString];
        label.text = update;
        [update release];
        
    }
    
    - (BOOL)textFieldShouldReturn:(UITextField *)theTextField {
        if (theTextField == textField) {
            [textField resignFirstResponder];
        }
        return YES;
    }
    Then on down below that, I have it releasing:

    Code:
    - (void)dealloc {
        [textField release];
        [label release];
        [string release];
        [pictureWebView release];
        [super dealloc];
    }
    And here's the h file...

    Code:
    #import <UIKit/UIKit.h>
    
    
    @interface ViewController : UIViewController {
        UITextField *textField;
        UILabel *label;
        NSString *string;
        UIWebView *pictureWebView;
        
    }
    
    @property (nonatomic, retain) IBOutlet UITextField *textField;
    @property (nonatomic, retain) IBOutlet UILabel *label;
    @property (nonatomic, copy) NSString *string;
    @property (nonatomic, retain) UIWebView *pictureWebView;
    
    - (IBAction)updateList: (id)sender;
    
    @end
    FINALLY...one question.

    Is there like a "page load" kind of event where I can load up an initial default page in the webview before I try passing it a "Store #"? Hope that made sense.


  2. #12
    iPad Master!
    Member #
    3851
    Liked
    1 times
    Join Date
    May 2010
    Location
    Miami, FL
    Posts
    1,854
    Myriad_Rocker check your private message.

  3. #13
    iPad Master!
    Member #
    3851
    Liked
    1 times
    Join Date
    May 2010
    Location
    Miami, FL
    Posts
    1,854
    Let me know if you ever got my email.


Home | Forum | Active Topics | What's New

Sponsors

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Similar Threads

  1. Only three screens for app display?
    By jacamoore in forum iPad Help
    Replies: 2
    Last Post: 07-02-2010, 04:32 PM
  2. Cellular Network Data - measures data use since...?
    By MLimtiaco in forum iPad General Discussions
    Replies: 2
    Last Post: 06-30-2010, 10:21 PM
  3. iPad display bug
    By jameslawson in forum iPad Help
    Replies: 7
    Last Post: 06-02-2010, 06:31 AM
  4. I did it!! Display anything from your iPad
    By Zip in forum iPad Hacking
    Replies: 3
    Last Post: 05-14-2010, 04:40 PM
  5. VGA display question
    By mediapad in forum iPad Help
    Replies: 0
    Last Post: 04-10-2010, 10:06 PM

Search tags for this page

data grid in ipad
,
data grid ios
,
data grid ipad
,
data grid xcode
,
data grids on ipads
,
datagrid in ipad
,
datagrid ios
,
datagrid ipad
,
display a grid of data in ios
,
gridtableview ios
,

ios data grid

,
ios data grid table
,

ios data grid table view

,
ios data table grid
,

ios datagrid

,
ios display grid
,
ios grid table view
,
ios ipad datagrid
,

ipad data grid

,

ipad datagrid

Click on a term to search for related topics.