CPViewController The cib should be initialized with bundle information.

This commit is contained in:
cacaodev
2012-03-23 10:09:48 +01:00
parent 7c807dd887
commit 93f51eaa42
+1 -1
View File
@@ -160,7 +160,7 @@ var CPViewControllerCachedCibs;
if (!cib)
{
// if the cib isn't cached yet : fetch it and cache it
cib = [[CPCib alloc] initWithContentsOfURL:[_cibBundle pathForResource:_cibName + @".cib"]];
cib = [[CPCib alloc] initWithCibNamed:_cibName bundle:_cibBundle];
[CPViewControllerCachedCibs setObject:cib forKey:_cibName];
}