나는 UIPageViewController과 내에서 여러 UIWebViews의를 사용하고 작동하지 않습니다, 나는이와 함께 전에서 내 webviews을 모두로드 : 때때로 모든 잘못을 제외하고있는 UIWebView scalesPageToFit가 제대로
- (void) createContentPages
{
NSMutableArray *pageStrings = [[NSMutableArray alloc] init];
for (int i = 0; i < chapters.count; i++)
{
NSString *path;
path = [[NSBundle mainBundle] pathForResource:[NSString stringWithFormat:@"%@%@",[arrayDeCapitulos objectAtIndex:i],idioma] ofType:@"txt"];
NSString *arbit;
if (path) {
arbit = [[NSString alloc]initWithContentsOfFile:arbitPath encoding:NSUTF8StringEncoding error:nil];
}
NSString *a;
[email protected]"LTR";
if ([idioma isEqualToString:@"h"]) {
[email protected]"RTL";
}
int size=[[[NSUserDefaults standardUserDefaults]objectForKey:@"preferredSize"]integerValue];
NSString *contentString=[NSString stringWithFormat:@"<html DIR='%@'><head>"
"<style>"
"*{ padding-bottom:5;font-size:%i;"
" font-family:'SBL Hebrew';max-width: %fpx;}"
"</style>"
"<meta name='viewport' content='width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;' />"
"</head>"
"<body>"
"%@"
"</BODY> </HTML>",a,size,self.view.bounds.size.width ,arbit];
[pageStrings addObject:contentString];
}
pageContent = [[NSArray alloc] initWithArray:pageStrings];
}
모든 것이 정상입니다 ... 나는 모든 것을 시도해 보았습니다. 누군가 아이디어를 가지고 있습니까?