for (NotificationItem *item insortedCommonArray) {
if (item.type == 1 && item.time == currentTime) {//用药
if (!item.parentSelected || !item.selected) {
continue;
}
TNotificationView *notificationView = [[[UINibnibWithNibName:@"TNotificationView"bundle:nil]instantiateWithOwner:selfoptions:nil]objectAtIndex:0];
notificationView.titleLabel.text = item.drugName;
notificationView.secondLabel.text = item.intro;
notificationView.iconImageView.image = [UIImage imageNamed:@"icon_medicine.png"];
notificationView.frame = CGRectMake(originX, originY, notificationView.frame.size.width, notificationView.frame.size.height);
[self.mScrollView addSubview:notificationView];
originY = originY + notificationView.frame.size.height;
}
}