Merge pull request #1482 from cacaodev/CPViewController-bundle-fix

CPViewController The cib should be initialized with bundle information.
This commit is contained in:
aparajita
2012-03-23 09:30:23 -07:00
+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];
}