先在App的入口文件[YourPrefix]AppDelegate定义

#define AppDelegate (XYAppDelegate *)[[UIApplication sharedApplication] delegate]
全局变量定义为AppDelegate的属性

然后在项目的其他文件中引入 AppDelegate.h
使用[AppDelegate 全局变量]就可以访问全局变量，比如baseURL
