freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于_ios的威客平臺(tái)設(shè)計(jì)與開發(fā)畢業(yè)論文(已改無(wú)錯(cuò)字)

2022-08-22 06:13:54 本頁(yè)面
  

【正文】 Ten_taskid int 任務(wù) ID 3 Ten_date time 投標(biāo)時(shí)間 4 say varchar 投標(biāo)說(shuō)明 序號(hào) 字段名 數(shù)據(jù)類型 主鍵 說(shuō)明 1 userid int yes 用戶 ID 2 username varhcar 用戶名 3 pwd varchar 密碼 4 userinfo varchar 用戶自我描述 5 userwhich int 身份類型 6 U_phone varchar 電話 7 headpic varchar 頭像地址 8 U_date time 創(chuàng)建日期 22 六 、威客系統(tǒng)項(xiàng)目核心代碼 1,任務(wù)日期處理代碼: (NSString *)dateToHandle:(NSString *)d{ NSDateFormatter *df = [[NSDateFormatter alloc] init]。 [df setDateFormat:@yyyyMMdd HH:mm:ss]。 NSDate *date = [df dateFromString:d]。 NSInteger sec = (int)[date timeIntervalSinceNow]。 sec = abs(sec)。 if(sec 3600){ NSString *res = [NSString stringWithFormat:@%d 分鐘前 ,sec/60]。 return res。 } else if(sec =3600 amp。amp。 sec 3600 * 24){ NSString *res = [NSString stringWithFormat:@%d 小時(shí)前 ,sec/3600]。 return res。 } else{ if(sec/(3600 * 24) == 1){ NSString *res = [NSString stringWithFormat:@昨天 ]。 return res。 } else{ NSString *res = [NSString stringWithFormat:@%d 天前 ,sec/(3600 * 24)]。 23 return res。 } } return @。 } 2,用戶異步加載 (void)downloadHeadpic:(UIImageView *)p url:(NSString *)u{ dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^(void){ NSData *picdata = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:u]]。 UIImage *image = [[UIImage alloc] initWithData:picdata]。 if(image != nil){ dispatch_async(dispatch_get_main_queue(), ^{ = image。 })。 } else{ NSLog(@圖片出錯(cuò) )。 } })。 } 3,發(fā)布任務(wù)請(qǐng)求服務(wù)器 (void)save{ UITextView *tv = (UITextView *)[ viewWithTag:12]。 [tv resignFirstResponder]。 NSUserDefaults *user = [NSUserDefaults standardUserDefaults]。 if([user objectForKey:@userMsg]){ = 。 if(0 amp。amp。 0 amp。amp。 0){ NSDictionary *dict2 = [NSDictionary dictionaryWithObjectsAndKeys: [[user objectForKey:@userMsg] objectForKey:@userid], @userid, , @type, , @money, , @t_phone, , @detail, @0, @voiceaddr, @0, @picaddr, @0, @tendercount, nil]。 NSLog(@dict2:%@,dict2)。 WKAddToServer *as = [[WKAddToServer alloc] initWk]。 [as addTask:dict2 and:self]。 24 } } else{ // 注冊(cè)登錄 // task 數(shù)據(jù) UITextView *utv = (UITextView *)[ viewWithTag:12]。 = 。 NSDictionary *dict2 = [NSDictionary dictionaryWithObjectsAndKeys: , @type, , @money, , @t_phone, , @detail, @0, @voiceaddr, @0, @picaddr, @0, @tendercount, nil]。 MyTaskMsg *tm = [MyTaskMsg defaultManager]。 = dict2。 ViewController5 *login = [[ViewController5 alloc] init]。 [ pushViewController:login animated:YES]。 } } 4,服務(wù)器請(qǐng)求類代碼 (WKAddToServer *)initWk{ self = [super init]。 if (self) { MyProjectmsg *mp = [MyProjectmsg defaultManager]。 dictsys = 。 } return self。 } (void)addUser:(NSDictionary *)dict{} (void)addTask:(NSDictionary *)dict and:(UIViewController *)vc{ uvc = vc。 NSData *data = [NSJSONSerialization dataWithJSONObject:dict options:0 error:nil]。 NSString *jsonmsg = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]。 NSURL *url = [NSURL URLWithString:[dictsys objectForKey:@postnewtaskmsgurl]]。 [self postMsgForNewUser:jsonmsg and:url]。 } (void)postMsgForNewUser:(NSString *)j and:(NSURL *)u{ DialogView *dia = [[DialogView alloc] init]。 25 waitView = [dia getView]。 = 99。 [ addSubview:waitView]。 NSArray *arr = [NSArray arrayWithObjects:j,u, nil]。 [self performSelector:@selector(stopProgram:) withObject:arr afterDelay:1]。 } //提交數(shù)據(jù) (void)stopProgram:(NSArray *)arr{ ASIFormDataRequest *asi = [ASIFormDataRequest requestWithURL:arr[1]]。 [asi setPostValue:arr[0] forKey:@msg]。 [asi startSynchronous]。 NSError *error = [asi error]。 if(!error){ NSCharacterSet *set = [NSCharacterSet whitespaceAndNewlineCharacterSet]。 NSString *res = [[NSString alloc] initWithData: encoding:NSUTF8StringEncoding]。 NSString *res1 = [res stringByTrimmingCharactersInSet:set]。 if([res1 intValue] != 0){ [NSThread detachNewThreadSelector:@selector(altShow) toTarget:self withObject:nil]。 [self performSelector:@selector(removeAltview) withObject:nil afterDelay:1]。 } else{ NSLog(@失敗 1)。 } } else{ NSLog(@%@,error)。 } } //清除控件使成功 label 顯示最頂層 (void)altShow{ id subact = [waitView viewWithTag:30]。 [subact removeFromSuperview]。 } //清除彈出 view (void)removeAltview{ [waitView removeFromSuperview]。 = 1。 } //根據(jù)用戶 id獲取發(fā)布的任務(wù) (NSArray *)getPulishTask:(NSString *)userid { NSURL *url = [NSURL URLWithString:[dictsys objectForKey:@postUseridToGetTaskUrl]]。 26 ASIFormDataRequest *asi = [ASIFormDataRequest requestWithURL:url]。 [asi setPostValue:userid forKey:@msg]。 [asi startSynchronous]。 NSError *erro
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1