Code Type: ARM-64 (Native)
OS Version: iOS 8.1 (12B410)
Thread 0 Crashed:
4 RND 0x0000000100126c5c 0x1000d4000 + 339036
5 CoreFoundation 0x0000000187bde204 __handleUncaughtException + 688
UIScrollView растягивается сразу в обоих измерениях
Label не переносится на новую строку, а уходит за границу
Put data cache files in the Library/Caches/ directory. Cache data can be used for any data that needs to persist longer than temporary data, but not as long as a support file. Generally speaking, the application does not require cache data to operate properly, but it can use cache data to improve performance. Examples of cache data include (but are not limited to) database cache files and transient, downloadable content. Note that the system may delete the Caches/ directory to free up disk space, so your app must be able to re-create or download these files as needed.
seld.tableView.bounces = YES;
илиseld.scrollView.bounces = YES;
NSArray *data=[NSArray arrayWithObjects:[Singleton sharedMySingleton].firstX,[Singleton sharedMySingleton].firstY,[Singleton sharedMySingleton].lastX,[Singleton sharedMySingleton].lastY,[Singleton sharedMySingleton].length,[Singleton sharedMySingleton].colorNumber,[Singleton sharedMySingleton].elementNаme, nil];
@property (nonatomic, strong) NSMutableArray *labels;
- (void)createLabels
{
self.labels = [NSMutableArray new];
for (int i = 0; i < N; i++)
{
UILabel *l = ...
//тут вставить настройку label-а то что у вас выше
[self.labels addObject:l];
[self.view addSubview:l];
}
}
for(int i = 0; i < self.labels.count; i++)
{
UILabel *l = self.labels[i];
}
Думаю проблема в том, что переменная 'pew' инициализируется после нажатия на картинку. В этот момент myViewController уже загружен. Нужен метод, который обрабатывал бы события после загрузки контролера.
#import "ImageTouched.h"
-(void)awakeFromNib
{
self.pew = @"pewpewpewew";
}
NSDateFormatter *formatter = [NSDateFormatter new];
[formatter setDateFormat:@"EEE, dd MMM yyyy HH:mm:ss 'EST'"];
[formatter setTimeZone:[NSTimeZone timeZoneWithName:@"EST"]];
NSLog(@"%@", [formatter dateFromString:@"Tue, 18 Dec 2007 23:00:00 EST"]);
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
if ([sender isKindOfClass:[UITableViewCell class]])
{
UITableViewCell *cell = (UITableViewCell *)sender;
NSString *tmpStr = cell.textLabel.text;
VCViewController *destinationController = (VCViewController *) segue.destinationViewController;
NSLog(@"%@", destinationController.class);
[segue.destinationViewController setMyProperty:tmpStr];
}
}