代码如下
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@property(copy,nonatomic) NSString *String;
@end
实现
@implementation AppDelegate
//-(NSString *)String{
// NSLog(@"get");
// return _String;
//}
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
NSMutableString *temp = [[NSMutableString alloc] init];
[temp appendString :@"NSMutableString"];