今天天氣好熱 一整天都是暈的 oh mygod
公司主營業(yè)務(wù):成都網(wǎng)站建設(shè)、網(wǎng)站制作、移動(dòng)網(wǎng)站開發(fā)等業(yè)務(wù)。幫助企業(yè)客戶真正實(shí)現(xiàn)互聯(lián)網(wǎng)宣傳,提高企業(yè)的競爭能力。成都創(chuàng)新互聯(lián)是一支青春激揚(yáng)、勤奮敬業(yè)、活力青春激揚(yáng)、勤奮敬業(yè)、活力澎湃、和諧高效的團(tuán)隊(duì)。公司秉承以“開放、自由、嚴(yán)謹(jǐn)、自律”為核心的企業(yè)文化,感謝他們對我們的高要求,感謝他們從不同領(lǐng)域給我們帶來的挑戰(zhàn),讓我們激情的團(tuán)隊(duì)有機(jī)會(huì)用頭腦與智慧不斷的給客戶帶來驚喜。成都創(chuàng)新互聯(lián)推出六枝免費(fèi)做網(wǎng)站回饋大家。//
// PLViewController.m
// MenuView
//
// Created by apple-zql on 13-4-18.
// Copyright (c) 2013年 apple-zql. All rights reserved.
//
#import "PLViewController.h"
@interface PLViewController ()
@end
@implementation PLViewController
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
}
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
UIButton *myBtn = [[UIButton alloc] init];
myBtn.frame = CGRectMake(100, 100, 100, 20);
[myBtn setTitle:@"你好" forState:UIControlStateNormal];
myBtn.backgroundColor = [UIColor blackColor];
[myBtn addTarget:self action:@selector(showMenu:) forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:myBtn];
[myBtn release];
}
- (void) showMenu:(id)sender
{
[self becomeFirstResponder];
UIMenuController *menu = [UIMenuController sharedMenuController];
UIMenuItem *item1 = [[UIMenuItem alloc] initWithTitle:@"1111" action:@selector(click:)];
UIMenuItem *item2 = [[UIMenuItem alloc] initWithTitle:@"2222" action:@selector(click1:)];
menu.menuItems = [NSArray arrayWithObjects:item1,item2, nil];
[menu setTargetRect:CGRectMake(10, 10, 30, 30) inView:self.view];
[menu setMenuVisible:YES animated:YES];
}
- (BOOL)canPerformAction:(SEL)action withSender:(id)sender
{
if (action == @selector(click:)) {
return YES;//顯示
}else if(action == @selector(click1:)){
return YES;
}
return NO;//不顯示
}
- (void) click1:(id)sender{
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"1111" message:@"1111" delegate:self cancelButtonTitle:@"OK" otherButtonTitles: nil];
[alert show];
}
- (void) click:(id)sender{
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"2222" message:@"2222" delegate:self cancelButtonTitle:@"OK" otherButtonTitles: nil];
[alert show];
}
- (BOOL)canBecomeFirstResponder{
return YES;
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)scvps.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。