这个是由于把这些类独立放到UIKit中了
swift解法:
@import UIKit;
OC的话
#import <UIKit/UIKit.h>
[......]
转载自:http://www.2cto.com/kf/201506/407038.html
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
UITableViewCell *cell;
switch (indexPath.row) {
case 0:
{[......]
scheduleNotification之前,需要申请权限,如下:
[[UIApplication sharedApplication] registerUserNotificationSettings:
[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeAlert)
categories:nil]];[......]
在XCode 6的某个版本后,XCode的项目向导取消了空的ios工程选项。
参考 http://stackoverflow.com/questions/25783282/how-to-create-an-empty-application-in-xcode-6-without-storyboard
可以如下操作:
There is no option in XCode6
for directly creating an Empty Application as in XC[......]