开发者

UIView with UITableview and UIImageview, accessing UITableview with reloadData

开发者 https://www.devze.com 2023-03-27 12:51 出处:网络
I have searched now for a very long time without any success. I have an UIView which includes an UITableView and an UIImageview.

UIView with UITableview and UIImageview, accessing UITableview with reloadData

I have searched now for a very long time without any success.

I have an UIView which includes an UITableView and an UIImageview.

I need this because otherwise the UITableView can't be 开发者_开发百科resized.

So now I cant use the reloadData method to reload some Data of the TableView.

I tried everything, but I can't connect the IBOutlet(UITableview) with the controller.

So here is my code for the ViewController:

@interface MainViewController : UIViewController  <UITableViewDelegate,UITableViewDataSource,ASIHTTPRequestDelegate>

{
    IBOutlet UITableView* tableview;
}

@property (nonatomic, retain) IBOutlet UITableView* tableview;

Please help so my headaches will disappear soon

EDIT :

I think its this issue but I use Xcode 4.1: Can't connect IBOutlet in Interface Builder

UPDATE :

I just removed the faulty UIView and its Controller and copied the code back in...

Finally it worked, took me about 5 hours until I knew that it wasn´t my fault...


A bit more of your code would help, but does the following exist in your .h file?

{
   UITableView *tableView;
}

@property (nonatomic, retain) IBOutlet UITableView *tableView;

And don't forget to synthesize the property in your .m file.

0

精彩评论

暂无评论...
验证码 换一张
取 消