我的应用程序中有10个viewControllers.我已经使用每个viewController的NEXT按钮上的NavigationController的pushViewController方法推送了所有这些viewControllers.
我已经使用了代码;
[self.navigationController pushViewController:someView animated:YES];
Run Code Online (Sandbox Code Playgroud)
现在我想从第10个子节点(viewController)跳回rootViewController.
我怎样才能做到这一点 ?
请帮我..
谢谢.
在我的应用程序中,我image
使用相机拍摄UIImagePicker
而不是裁剪.但问题是,当我在横向模式下从相机捕捉图像时,在以画面模式裁剪时,黑框显示在图像中.
图像以横向模式捕获 -
在使用该图像时,黑匣子显示在图像的上部和下部,如下图所示 -
但我想删除那些黑色部分,以便image
覆盖整个区域.
我怎样才能做到这一点 ?
我收到这样的错误,所有其他页面都工作正常,但出现错误我已在本地网站中添加了新页面,这正在工作
“/”应用程序中的服务器错误。
运行时错误描述:服务器上发生应用程序错误。此应用程序的当前自定义错误设置阻止远程查看应用程序错误的详细信息(出于安全原因)。但是,它可以通过本地服务器计算机上运行的浏览器查看。
详细信息:要在远程计算机上查看此特定错误消息的详细信息,请在位于当前 Web 应用程序根目录的“web.config”配置文件中创建一个标记。该标签的“mode”属性应设置为“Off”。
Run Code Online (Sandbox Code Playgroud)<!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="Off"/> </system.web> </configuration>
注意:通过修改应用程序配置标记的“defaultRedirect”属性以指向自定义错误页面 URL,可以将您看到的当前错误页面替换为自定义错误页面。
Run Code Online (Sandbox Code Playgroud)<!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> </system.web> </configuration>
我正在使用此代码
<asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>
<asp:Button ID="addnewtext" runat="server" Text="Add" onclick="addnewtext_Click" width="76px" />
Run Code Online (Sandbox Code Playgroud)
和aspx.cs页面代码:
TextBox tb;
static int i = 0;
protected void addnewtext_Click(object sender, EventArgs e)
{
tb = new TextBox();
tb.ID = i.ToString();
PlaceHolder1.Controls.Add(tb);
i++;
}
Run Code Online (Sandbox Code Playgroud)
每按一下按钮,我想添加另一个文本框.
我在我的电子邮件应用程序中展示了MFMailComposeViewController.但是视图没有显示,只显示上部SEND和CANCEL按钮.
这是在点击"Email to Subscribe"按钮后显示的视图的屏幕截图.
我查看了所有相关代码.我添加了"MessageUI"框架并导入
MessageUI/MessageUI.h , MessageUI/MFMailComposeViewController.h
Run Code Online (Sandbox Code Playgroud)
我使用了以下代码:
- (void)viewWillAppear:(BOOL)animated {
[self.view setFrame:CGRectMake(0, 62, 320, 418)];
[APPDELEGATE.window addSubview:self.view];
[self.navigationController.navigationBar setHidden:NO];
self.navigationItem.title=@"Free Subscription";
[super viewWillAppear:animated]; }
-(void)viewWillDisappear:(BOOL)animated {
[self.view removeFromSuperview];
[super viewWillDisappear:animated]; }
-(IBAction)btnEmailPressed {
MFMailComposeViewController* Apicker = [[MFMailComposeViewController alloc] init];
if (Apicker != nil)
{
[Apicker setSubject:@"Free Subscription"];
[Apicker setMessageBody:@" " isHTML:NO];
NSArray *toRecipients = [NSArray arrayWithObjects:@"info@xyz.com", nil];
[Apicker setToRecipients:toRecipients];
Apicker.mailComposeDelegate = self;
if([MFMailComposeViewController canSendMail])
{
[self presentModalViewController:Apicker animated:YES];
}
else
{
}
[Apicker release];
} }
-(void)mailComposeController:(MFMailComposeViewController *)controller …
Run Code Online (Sandbox Code Playgroud) ios ×3
iphone ×3
objective-c ×3
asp.net ×2
c# ×2
ios5 ×2
.net ×1
camera ×1
controls ×1
dynamic ×1
mfmailcomposeviewcontroller ×1
web-config ×1
xcode ×1