1, found in the appdelegate.m "application:didfinishlaunchingwithoptions:"
Judging by the nsuserdefaults.
if (![ [ nsuserdefaults standarduserdefaults] boolforkey
[[ standarduserdefaults: yes forkey: Span style= "margin:0px;padding:0px;" >@ "everlaunched"
[[ standarduserdefaults: yes forkey: Span style= "margin:0px;padding:0px;" >@ "Firstlaunch"
NSLog(@ "first launch");
}Else {
[[ standarduserdefaults: no forkey: Span style= "margin:0px;padding:0px;" >@ "Firstlaunch"
NSLog(@ "second launch");
}
2, in Rootviewcontroller's Viewwillappear: The method inside to add
if ([[ nsuserdefaults standarduserdefaults: @ "Firstlaunch" ]) {
[[ standarduserdefaults: no forkey: Span style= "margin:0px;padding:0px;" >@ "Firstlaunch"
userguidecontroller *userguide = [[[ Userguidecontroller] ] autorelease ";
[self presentmodalviewcontroller: userguide animated:YES];
}
3, in the Settings page can also add the same view, so that users can view.
This article is from the "zhuoking" blog, make sure to keep this source http://9951038.blog.51cto.com/9941038/1746336
IOS Novice Guide added in the app, the first launch of the application appears, the back does not appear