小编ich*_*duu的帖子

运行目标无效Xcode

我正在使用Xcode 5,当我尝试在iOS 6模拟器上运行我的应用程序时,我收到以下错误.

 The scheme 'Appname' contains no buildables that can be built for the 
`SDKs` supported by the run destination iPhone Retina (4-inch). Make sure your 
targets all specify `SDKs` that are supported by this version of `Xcode`.
Run Code Online (Sandbox Code Playgroud)

Base SDK设置为iOS SDK 7.0.iOS部署目标设置为iOS 6.0

iphone xcode ios7

6
推荐指数
1
解决办法
1万
查看次数

对两个TextField使用相同的UIDatePicker

我感到有两个文本框,没有fromdate和todate.how从同一datepicker.i得到不同的日期,尝试一些东西,最终在得到相同的日期在两个文本框时更改日期.

-(IBAction)dateValueChanged:(id)sender
{
        UIDatePicker *picker = (UIDatePicker *)sender;
        NSDate *dateSelected1 = [picker date];
        NSDate *dateSelected2 = [picker date];

        NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
        [dateFormatter setDateFormat:@"dd-MM-yyyy"];
        self.fromTextField.text = [dateFormatter stringFromDate:dateSelected1];
       self.toTextField.text = [dateFormatter stringFromDate:dateSelected2];
}
Run Code Online (Sandbox Code Playgroud)

xcode objective-c uidatepicker uitextfield ios

4
推荐指数
1
解决办法
3918
查看次数

标签 统计

xcode ×2

ios ×1

ios7 ×1

iphone ×1

objective-c ×1

uidatepicker ×1

uitextfield ×1