Welcome to Apple iPhone news and Chat discussion forums. iPhone Discussions is dedicated to iPhone,Talk about iPhone modifications,software,reviews,Support, iPhone news , iphone mobile,iPhone OS and more about iphone uiwebview addsubview...
HII Have create a small project which can modify the brightness ( or the transparency ) of a labelUIlabelSo the codeFile .mControl_Box_CookeAppDelegate.mCode :Code://// Control_Box_CookeAppDelegate.m// Control Box Cooke//// Created by Bruno on 1/11/10.// Copyright __MyCompanyName__ 2010. All rights reserved.//#import SerialManager.h#import Control_Box_CookeAppDelegate.h#import PickerViewController.h#include <fcntl.h>#include Led.h@implementation Control_Box_CookeAppDelegate@synthesize window;/*- (void)applicationDidFinishLaunching:(UIApplication *)application { // Override point for customization after application launch window makeKeyAndVisible;++}*///RootViewController.m- (void)applicationDidFinishLaunching:(UIApplication *)application {+++pvController = PickerViewController alloc initWithNibName:@pickerview/*@MainWindow*//*@Control Box Cooke*//*@PickerView*/ bundle:NSBundle mainBundle;++Led_Operateur= Led alloc initWithFrame:CGRectMake(20,50,280,20);++Led_Operateur.text=@ ;++Led_Operateur setBackgroundColor: UIColor colorWithWhite:1.0 alpha: 0.5;++pvController.view addsubview:Led_Operateur;++window addsubview:pvController.view;++++++// Override point for customization after application launch++window makeKeyAndVisible;+++++}- (void)dealloc {+Led_Operateur release;++pvController release;+window release; super dealloc;}-(void)Modifie_luma:(CGFloat)luma{+pvController = PickerViewController alloc initWithNibName:@pickerview bundle:NSBundle mainBundle;++Led_Operateur= UILabel alloc initWithFrame:CGRectMake(20,50,280,20);++Led_Operateur.text=@ ;++Led_Operateur setBackgroundColor: UIColor colorWithWhite:1.0 alpha: luma;++pvController.view addsubview:Led_Operateur;++window addsubview:pvController.view;++window makeKeyAndVisible;+}@endfile.hCode :Code://// Control_Box_CookeAppDelegate.h// Control Box Cooke//// Created by Bruno on 1/11/10.// Copyright __MyCompanyName__ 2010. All rights reserved.//#import <UIKit/UIKit.h>#import SerialManager.h#import led.h@class PickerViewController;@interface Control_Box_CookeAppDelegate : NSObject <UIApplicationDelegate> { UIWindow *window;+PickerViewController *pvController;++SerialManager *portCunima;++int port_in,port_out; // numero de port de com in-out++UILabel *Led_Operateur;+}-(void)Modifie_luma:(CGFloat)luma;@property (nonatomic, retain) IBOutlet UIWindow *window;@endTo the initialization no problem my label UILabel display itself very well with the transparencyof 50% ( alpha=0.5)But when I modify this transparency with a button, in my window iPhonethe program call the method Modifie_Luma witch is the class Control_Box_CookeAppDelegatethe program go on to this method, (I have fixe a breakpoint) but impossible to various this transparency.So if I change in method (void)applicationDidFinishLaunchingthe transparencyexample alpha =0,5 => alpha =0,8Code :Code:+Led_Operateur setBackgroundColor: UIColor colorWithWhite:1.0 alpha: 0.8;+this example go on resume when I change the transparency in the method(void)applicationDidFinishLaunching it s OKwhen I change the transparency in the method-(void)Modifie_luma its not OKHave you an explanation ? Mac Intel Core 2 duo 2,66 GHz Mac OS X 10.5
Whats New in iphone OS...UIKit Framework Enhancements...Enhanced support in uiwebview for displaying previews of RTF, RTFD, PDF, iWork, and Office documents.I see no info in the uiwebview reference as to how to use: uiwebview for displaying previews of RTF, RTFD, PDF...Where is this documented? Or how does one do this?-Jean A Mac programmer since 1986. iphone SDK 3.0 Other OS
Hi All,can I stop bouncing uiwebview ?? with only condition that scrolling should be work as it work in default.I have tried bellow:#1UIScrollView *tempScrollView = myWebView.subviews objectAtIndex:0;tempScrollView.bounce = NO;#2<script language=javascript>document.ontouchmove = function(event){ event.preventDefault();}</script>but dont work... And orangekay You share your view, if you can iDeneb Virsion 10.5.4
Is it possible to drop a uiwebview in an app and have it view in landscape mode only. I understand and can get autorotate to work, but Id like it to stick in landscape mode regardless of the phones orientation.If so, how do I go about doing this?Thanks mini Mac OS X (10.5.4)
I tried to change User-Agent using NSMutableURLRequest in the uiwebview delegate function, but didnt work. The funny thing is...the User-Agent string changed if the request is redirect. Have anyone experienced it? I want to change User-Agent of every request from uiwebview to the same like coming from Safari browser. Please HELP!! Mac OS X (10.5.6)
