我正在开发一个项目,它有一些输入,如任务类型和频率.例如
如果任务类型=每日且频率= 2,则每隔一天创建5个任务.如果任务类型=每日和频率= 3,则在今天以及第3天和第6天创建5个任务.如果任务类型=每周和频率= 2,则每隔一周创建2个任务.
更多我有一个日历表,所以我需要检查工作日,如果是周末,该任务应该在下一个工作日生成.我也有calendar_Holidays表,所以检查和皮肤也是日期.
我可以使用设计模式来解决这个问题吗?有人可以告诉我怎么样?
我希望将一些变量传递给函数并将它们设置为其他东西,而不是从它们读取.我打算在我可以创建对象的场景中使用它,并将其添加到执行队列中.指针是否适合这个?
我知道我的问题解释不好,但我不知道更好的解释方法.
我对iPhone编码很新,想知道是否有人可以帮助我.
准备好代码,以便当应用程序加载UIAletView时加载并提示用户查看/评价应用程序,但我有一个名为"从不评分"的按钮
我需要帮助来找出如何编写"永不率"按钮的代码,以便在按下时,每次加载应用程序时都不会加载UI警报.
到目前为止这是我的代码:
(void)viewDidLoad {
UIAlertView *alert;
alert = [[UIAlertView alloc] initWithTitle:@"Rate My Appication" message:@" Please Rate my Application and check out my other Apps"
delegate: self
cancelButtonTitle:@" Cancel "
otherButtonTitles: @" Rate Now ", @"Check Other Apps", @" Never Rate ", nil];
[alert show];
[alert release];
}
(bool)alertView:(UIAlertView *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex {
// Never Review Button
if (buttonIndex == 3)
{
}
// Review Button
else if (buttonIndex == 1)
{
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://itunes.apple.com/gb/app/calculator/id389197581?mt=8"]];
}
// Other Apps …
Run Code Online (Sandbox Code Playgroud) 我有这门课:
public class CameraWindow : PictureBox
Run Code Online (Sandbox Code Playgroud)
我可以以某种方式Image
从班级内部访问该属性?
我可以访问这些活动吗?喜欢onload
?
c# ×2
.net ×1
algorithm ×1
class ×1
inheritance ×1
iphone ×1
objective-c ×1
oop ×1
uialertview ×1