iphone - Add drawing objects to UIWebView -
basic question - have uiwebview pdf document loaded.
how can add drawing objects (eg. symbol) uiwebview's scrollview layer.
cheers
try this.
- (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions { [self.window makekeyandvisible]; [web loadrequest:[nsurlrequest requestwithurl:[nsurl urlwithstring:@"http://tiny4.org"]]]; uiscrollview* scrollview = [[web subviews] objectatindex:0]; web.backgroundcolor = [uicolor clearcolor]; scrollview.backgroundcolor = [uicolor clearcolor]; uilabel* label = [[uilabel alloc] initwithframe:cgrectmake(0, 40, 100, 20)]; label.text = @"testasdasdasda"; [window addsubview:label]; [window bringsubviewtofront:web]; }
Comments
Post a Comment