如何在主页上方设计叠加菜单? [英] How to Design the Overlay Menu Above the Home Page?

查看:163
本文介绍了如何在主页上方设计叠加菜单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在视图上方设计叠加指令?

How to Design the Overlay Instructions Above The View?

I HAD 6 buttons....For Each Button I have To show Overlay For That, Before i click on that Button




假设。 .. 1)点击按钮就在那里......点击按钮上方我们需要
来显示叠加点击该按钮那样...

Suppose... 1) Click button is there...above the Click Button we need to show overlay for click on that button Like That...



**





[我需要在所有按钮上覆盖此覆盖菜单] [1]

[I Need Like This Overlay menu over the all Buttons][1]

[1]: http://i.stack.imgur.com/dIjRF.jpg


**

推荐答案

使用POST方法将参数发送到Web服务

以下是使用 NSURLConnection 将数据发布到Web服务的代码。

Below is code to POST data to web service using NSURLConnection.

-(void)postData
{
    NSString *content = [NSString stringWithFormat:@"email=%@&name=%@",textEmail.text,textName.text];
    NSMutableURLRequest *request = [[NSMutableURLRequest alloc]initWithURL:[NSURL URLWithString:@"your web service url"]];
    [request setHTTPMethod:@"POST"];
    [request setHTTPBody:[content dataUsingEncoding:NSUTF8StringEncoding]];
    [NSURLConnection connectionWithRequest:request delegate:self];
}

- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
{
    dictJson = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil];
    NSLog(@"Dict Json :- %@",dictJson);   
}

这篇关于如何在主页上方设计叠加菜单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆