//将要开始编辑
- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField
{
NSLog(@"快要开始编辑了");
return YES;
}
- (void)applicationWillResignActive:(UIApplication *)application//解除活跃状态
{
NSLog(@"将要进入不活跃状态");
}
- (void)applicationDidEnterBackground:(UIApplication *)application//进去后台
{
NSLog(@"已经发进入后台");
}
- (void)applicationWillEnterForeground:(UIApplication *)application//进入前台
{
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
NSLog(@"将要进入前台");
}
- (void)applicationDidBecomeActive:(UIApplication *)application//变为活跃状态
{
NSLog(@"变为活跃状态");
}
- (void)applicationWillTerminate:(UIApplication *)application//结束
{
NSLog(@"结束时");
}
时间: 2024-10-03 12:06:02