小编sol*_*sol的帖子

无法向我自己的域中的地址发送电子邮件

我的域上有一个简单的PHP脚本,它给我发了一封电子邮件:

...
$toMail = "me@gmail.com"; //this works - I get the email at my gmail
$toMail = "me@mydomain.com"; //this doesn't - I get nothing

mail($toMail, $subject, $message, $header); 
Run Code Online (Sandbox Code Playgroud)

我改变什么设置来解决这个问题?

php email dns

31
推荐指数
5
解决办法
7万
查看次数

如果在工具栏中点击时,UIBarButtonItem不会突出显示?

我需要导航栏左侧的两个按钮.我弄清楚如何做到这一点的唯一方法是首先将它们放入UIToolbar,然后将leftBarButtonItem设置为.

如果我这样做,它就会正常工作(点击时可以看到它突出显示):

UIBarButtonItem* myBtn = [[UIBarButtonItem alloc] initWithTitle:@"Button" style:UIBarButtonItemStyleBordered target:self action:@selector(doSomething:)];

self.navigationItem.leftBarButtonItem = myBtn;
Run Code Online (Sandbox Code Playgroud)

但是,如果我这样做,按钮动作仍然会发生,但没有突出显示(没有视觉反馈,你正在点击按钮):

 NSMutableArray* buttons = [[NSMutableArray alloc] initWithCapacity:2];

 UIBarButtonItem* myBtn = [[UIBarButtonItem alloc] initWithTitle:@"Button" style:UIBarButtonItemStyleBordered target:self action:@selector(doSomething:)];

 UIBarButtonItem* myBtn2 = [[UIBarButtonItem alloc] initWithTitle:@"Button2" style:UIBarButtonItemStyleBordered target:self action:@selector(doSomethingElse:)];

 [buttons addObject:myBtn];
 [buttons addObject:myBtn2];

 UIToolbar* toolbar = [[UIToolbar alloc] initWithFrame:CGRectMake(0, 0, 133, 44)];
 [toolbar setItems:buttons animated:NO];
 self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:toolbar];
Run Code Online (Sandbox Code Playgroud)

知道为什么这会导致按钮在触摸时不突出显示?

iphone uinavigationbar uitoolbar uinavigationitem

5
推荐指数
1
解决办法
1063
查看次数

as3 - 从父swf到子swf的dispatchEvent

我有一个主要的"父"swf加载其他几个swfs.如果在主SWF中发生了某些事情,我需要告诉其中一个孩子swf.

这似乎相反,相反.任何一个孩子都可以简单地调用Event(),我可以设置主swf来监听事件.但是,我无法让子swf捕获父级调度的任何事件.怎么做?

flash events dispatcher actionscript-3

4
推荐指数
1
解决办法
1万
查看次数

你如何从iPhone应用程序使用OAuth到Twitter?

我正在寻找一个如何从iPhone应用程序发送推文的简单示例.我见过一些非常复杂的方法,但它不会那么困难.我已经通过Twitter注册了应用程序,所以我有密钥和秘密.只需要知道在哪里放这些,这样我就可以发送状态更新并让它说"从MyApp发送".

iphone twitter oauth

3
推荐指数
1
解决办法
3933
查看次数

iphone .objc_class_name错误

我几天来一直在打击这个框架错误.我已经从iphone3.0sdk中包含了MessageUI框架并导入了头文件(MessageUI/MessageUI.h)

谁知道这个错误意味着什么?

collect2: ld returned 1 exit status
symbol(s) not found
literal-pointer@_OBJC@__cls_refs@MFMailComposeViewController 
".objc_class_name_MFMailComposeViewController", referenced from:
Run Code Online (Sandbox Code Playgroud)

以下是构建日志的一些输出:

ld warning: in /Users/me/iphone/myApp/MessageUI.framework/MessageUI, missing required architecture i386 in file
Undefined symbols:
  ".objc_class_name_MFMailComposeViewController", referenced from:
      literal-pointer@__OBJC@__cls_refs@MFMailComposeViewController in myViewController.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Run Code Online (Sandbox Code Playgroud)

iphone frameworks

2
推荐指数
1
解决办法
6371
查看次数

在目标C中使用twitter api

所以,twitter API的方法是"status/update":

URL:
http://twitter.com/statuses/update.format

Formats: 
xml, json, rss, atom 

HTTP Method(s):
POST

Requires Authentication (about authentication):
true

API rate limited (about rate limiting):
false

Parameters:

    * status.  Required.  The text of your status update. URL encode as necessary. Statuses over 140 characters will be forceably truncated.
    * in_reply_to_status_id.  Optional. The ID of an existing status that the update is in reply to.
Run Code Online (Sandbox Code Playgroud)

你会如何用objective-c(iphone)调用这个方法?

iphone api twitter objective-c

1
推荐指数
2
解决办法
6867
查看次数