Hey, I'm actually working on my first VST as well and just created my very first.Q:
UITableView not scrolling
I have a table that I am adding data to from an NSMutableArray. I have attached an observer to that array and whenever the array is modified, I add the new values to the table.
The problem is that the table will not scroll, unless I have 3 or more rows in the table.
-(void) addNewItems {
self.data = [NSMutableArray array];
self.data = [self.database executeQuery:@"SELECT * FROM ItemMaster WHERE itemsEnabled = 1"];
NSLog(@"getItems() = %@", self.data);
[self.data addObject:@"Testing"];
[self.database close];
NSIndexPath *ip = [NSIndexPath indexPathForRow:0 inSection:0];
[self.tableView insertRowsAtIndexPaths:[NSArray arrayWithObject:ip] withRowAnimation:UITableViewRowAnimationRight];
}
I can scroll the view if I have 1 row in the table.
A:
You need to use
self.tableView.contentSize = CGSizeMake(1000, 1000);
When a table view's content size is zero, it ignores its scroll view's content size, and thus becomes unusable. Setting the content size to something non-zero forces the view to recalculate the scroll view's content size, and reposition the scroll bars accordingly.
A case of postpartum hydrops fetalis in a patient with focal nodular hyperplasia of the liver.
We report on a 27-year-old woman, gravida 0, para 0, who was hospitalized with severe anemia and liver failure because of an abnormal fetal heart tracing. Ultrasonographic examination revealed that the fetus had intrauterine growth retardation and a mass lesion in the liver. Cesarean section was performed under ultrasonographic guidance. The fetus was dead at the end of cesarean section. A large liver mass was identified and excised. Histological examination revealed the mass to be focal nodular hyperplasia of the liver. The mother also had focal nodular hyperplasia of the liver. We herein report this rare and unusual case of postpartum hydrops be359ba680
Related links:
Comments