MacDev 板


LINE

不好意思小弟才刚入门, 想询问一下关於tableview reloaddata 的问题 在此先说一声谢谢~~ 在程式启动後,table的确会照plist内的数量而建, 我也确定按下 add按钮後,array的确有增加而且存进plist内, 因为关掉程式後再开启,table就是plist的数量, 问题是 "我按reload那颗按钮,tableview不会更新" 所以想问一下.我有那里弄错... --------------------------------------------------- 这是我的 .h档 @interface ViewController :UIViewController <UITableViewDataSource,UITableViewDelegate> { UITableView *tableView; } @property (nonatomic,retain)UITableView *tableView; @end ---------------------------------------------------- ---------------------------------------------------- 以下是我的 .m档(不含tableview建置部分及array存取plist部分 ) @interface ViewController () { NSMutableArray *array; ///拿来建置tableview的array } @end @implementation ViewController @synthesize tableView; - (void)viewDidLoad { [super viewDidLoad]; array = [[NSMutableDictionary alloc] init]; array=[self takePlist]; ///将plist内资料读出到array ///布置一层view UIView *overlayView=[[UIView alloc]initWithFrame:CGRectMake(0,0,320,480)]; ///建tableview UITableView *tableView = [[UITableView alloc]initWithFrame: CGRectMake(0,0,320,480) style:UITableViewStylePlain]; tableView.dataSource = self; tableView.delegate = self; [overlayView addSubview:tableView]; ///建按钮reload UIButton *reloadButton=[UIButton buttonWithType:UIButtonTypeCustom]; reloadButton.frame=CGRectMake(0,400, 40, 40); [reloadButton setTitle:@"Reload" forState:UIControlStateNormal]; [reloadButton addTarget:self action:@selector(tableReload:) forControlEvents:UIControlEventTouchUpInside]; [overlayView addSubview:reloadButton]; ///建按钮add UIButton *addButton=[UIButton buttonWithType:UIButtonTypeCustom]; addButton.frame=CGRectMake(270,400, 40, 40); [addButton setTitle:@"Reload" forState:UIControlStateNormal]; [addButton addTarget:self action:@selector(tableAdd:) forControlEvent [overlayView addSubview:addButton]; ///view增加布置层 [self.view addSubview:onMainOverlayView]; } -(void) tableAdd(id)sender { NSLog(@"sour-%d",array.count); [array insertObject:@"aa" atIndex:0]; [self saveArrayToPlist:array]; ///将array 资料 存入Plist NSLog(@"now-%d",array.count); } -(void) tableReload(id)sender { [tableView reloadData]; } ------------------------------------------------------------------- 想要抱怨一下apple的app审核人员,各位可以当笑话看 在昨天AM03:21时,我第2版的app从Waiting For Review 变成In Review了 过了1小时後还在In Review,觉得怪怪的, 於是跑去查第1版 In Review的时间,竟然只有 5分钟.... 之後到了AM7:30 还在 In Review,我心里想说"审核人员在拖下班时间吧" 到了AM08:40, 我竟然被Metadata Reject.. 理由是"叙述功能太少" 我第2版也只改了一个BUG而已,竟然被Reject Orz 於是我就再加了一些叙述,而且还补上示范影片,在AM11:00前"submit new MetaData" 到了傍晚PM04:00又从"Waiting For Reviewe" 变成 In Review了, 我心里想说"审核人员很早上班嘛" 结果一直持续到了今天早上 AM06:00, 终於................ 又变 Metadata Reject. . >_< 我看了一下理由,发现到多了一段话,要我附示范影片....... 看到这句话时,我当场问候他娘, 你们是瞎了狗眼是不是,我都已经付了影片,还要我附是怎样~~ 吼~ --



※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.135.166.170 ※ 编辑: elver 来自: 220.135.166.170 (02/01 08:49)
1F:推 tentenlee:.....你建立了2个tableview都叫tableview 当然无法reloa 02/01 08:53
2F:推 osnq:我也遇过要附影片的要求,因为他们QA也有很多group。 02/01 10:38
3F:→ osnq:可能换到比较小心(龟毛)的group 吧... 02/01 10:39
4F:推 Adonisy:咦,我看有人只写bug fix也过啦 02/01 13:44
5F:→ uranusjr:算起来你 48 小时被 reject 两次, 算不错了 02/01 20:23
6F:→ uranusjr:虽然没过但至少他很快就退, 赢过躺了一周才给你 reject 02/01 20:24
7F:→ elver:後续,一样当天下午4点多进InReview,不过这次没拖到早上6点 02/02 05:39
8F:→ elver:隔天凌晨3点多就过了。 ^_^ /* 撒花 *\ ^_^ 02/02 05:41
9F:推 B1ack3y3:连续两次InReview等五天才被reject... 02/02 14:15
10F:→ benjenq:我有遇过In Review 等了快两星期被Reject 02/02 19:08
11F:→ benjenq:In-Review超过三天,就准备等着被退件或补件 02/02 19:10
12F:推 B1ack3y3:不一定, 我最近一次in review等5天然後通过.. 02/03 02:24
13F:推 Adonisy:最近两次(前几天),都是上架第二天 in review,第五天 02/04 12:47
14F:→ Adonisy:才过...以前都是 in review,10分钟後就过了,也是五天 02/04 12:48







like.gif 您可能会有兴趣的文章
icon.png[问题/行为] 猫晚上进房间会不会有憋尿问题
icon.pngRe: [闲聊] 选了错误的女孩成为魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一张
icon.png[心得] EMS高领长版毛衣.墨小楼MC1002
icon.png[分享] 丹龙隔热纸GE55+33+22
icon.png[问题] 清洗洗衣机
icon.png[寻物] 窗台下的空间
icon.png[闲聊] 双极の女神1 木魔爵
icon.png[售车] 新竹 1997 march 1297cc 白色 四门
icon.png[讨论] 能从照片感受到摄影者心情吗
icon.png[狂贺] 贺贺贺贺 贺!岛村卯月!总选举NO.1
icon.png[难过] 羡慕白皮肤的女生
icon.png阅读文章
icon.png[黑特]
icon.png[问题] SBK S1安装於安全帽位置
icon.png[分享] 旧woo100绝版开箱!!
icon.pngRe: [无言] 关於小包卫生纸
icon.png[开箱] E5-2683V3 RX480Strix 快睿C1 简单测试
icon.png[心得] 苍の海贼龙 地狱 执行者16PT
icon.png[售车] 1999年Virage iO 1.8EXi
icon.png[心得] 挑战33 LV10 狮子座pt solo
icon.png[闲聊] 手把手教你不被桶之新手主购教学
icon.png[分享] Civic Type R 量产版官方照无预警流出
icon.png[售车] Golf 4 2.0 银色 自排
icon.png[出售] Graco提篮汽座(有底座)2000元诚可议
icon.png[问题] 请问补牙材质掉了还能再补吗?(台中半年内
icon.png[问题] 44th 单曲 生写竟然都给重复的啊啊!
icon.png[心得] 华南红卡/icash 核卡
icon.png[问题] 拔牙矫正这样正常吗
icon.png[赠送] 老莫高业 初业 102年版
icon.png[情报] 三大行动支付 本季掀战火
icon.png[宝宝] 博客来Amos水蜡笔5/1特价五折
icon.pngRe: [心得] 新鲜人一些面试分享
icon.png[心得] 苍の海贼龙 地狱 麒麟25PT
icon.pngRe: [闲聊] (君の名は。雷慎入) 君名二创漫画翻译
icon.pngRe: [闲聊] OGN中场影片:失踪人口局 (英文字幕)
icon.png[问题] 台湾大哥大4G讯号差
icon.png[出售] [全国]全新千寻侘草LED灯, 水草

请输入看板名称,例如:Gossiping站内搜寻

TOP