首先寫乙個單例類:
實現類://
// qingdaobroadcastipad
//// created by ihope on 13-7-23.
// 任海麗
@end
1、更新公升級//
// qingdaobroadcastipad
//// created by ihope on 13-7-23.
// }
}//更新公升級
}else
}//評分
bool nevergrade = [[[nsuserdefaults standarduserdefaults] objectforkey:@"nevergrade"] boolvalue];
if(nevergrade != yes)
}-(void)alertview:(uialertview *)alertview clickedbuttonatindex:(nsinteger)buttonindex
// review button
else if (buttonindex == 1)
}break;
case 1001:
}break;
default:
break;
}}@end
需要得到當前應用的version版本,獲得之前版本的version,比較之下是否需要更新!
當前應用的version:
nsdictionary *infodict = [[nsbundle mainbundle] infodictionary];
nsstring *currentversion = [infodict objectforkey:@"cfbundleversion"];
之前應用的version:
2、應用評分
直接開啟這個鏈結就可以給應用評份;
//公升級
//評分 afterdelay秒 60*1==60分鐘,表示1分鐘後呼叫pinfen方法
[self performselector:@selector(pinfen) withobject:self afterdelay:1];
- (void)pinfen
iphone ipad應用的公升級更新提醒和評分提醒
首先寫乙個單例類 cpp view plain copy qingdaobroadcastipad created by ihope on 13 7 23.任海麗 import void 更新 void 評分 end 實現類 cpp view plain copy qingdaobroadcasti...
iphone ipad應用的公升級更新提醒和評分提醒
在使用iphone ipad應用的時候,有時候應用有更新公升級,appstore會提醒使用者有相應的更新,程式中需要在使用者開啟應用的時候提醒使用者更新,那麼就需要自己在程式當中寫乙個提醒事項,簡歷彈出框提醒使用者一下,就ok了!具體 分享給大家,請大家注意,必須要有app的id。那麼你會想應用第一...
Android 應用公升級
獲取版本 public void setversions context context catch packagemanager.namenotfoundexception n public void shownoticedialog context context setnegativebutt...