我知道这听起来非常基本,但在第一次使用PayPal时,我脑子里有这个问题.我已经通过谷歌搜索,但没有得到适当的回应区分"PayPal IPN和通知网址或返回网址".任何有关这方面的帮助都是值得的.
如果可能的话,我还需要知道它们的优点和功能区别.
谢谢
UIButton当我选择那个按钮时,我仍然选择了一个.这是我的代码:
- (IBAction)cloudclick:(UIButton *)sender {
UIImage *bgImage = [UIImage imageNamed:@"black_cloud.png"];
UIButton *tmpButton = (UIButton *)[self.view viewWithTag:sender.tag];
[tmpButton setBackgroundImage:bgImage forState:UIControlStateSelected];
}
Run Code Online (Sandbox Code Playgroud)
但是当我点击按钮时它不会保持选中状态.它会更改背景,但不会保留为选定按钮.
在我的xcode中,我有一个动态的uiview
UIView *gaping=[[UIView alloc] initWithFrame:CGRectMake(15, 0, 172, 39)];
gaping.backgroundColor= [UIColor redColor];
Run Code Online (Sandbox Code Playgroud)
我需要动态改变背景颜色.
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
UIView *gaping=[[UIView alloc] initWithFrame:CGRectMake(15, 0, 172, 39)];
gaping.backgroundColor= [UIColor redColor];
UITableViewCell *TableCell = [[UITableViewCell alloc] init];
NSMutableDictionary *RRTYRT = [DATAARRAY objectAtIndex:indexPath.row];
UILabel *LabelOne = [[UILabel alloc] initWithFrame:CGRectMake(45, 0, 100, 30)];
LabelOne.textColor = [UIColor whiteColor];
LabelOne.backgroundColor = [UIColor clearColor];
LabelOne.text = [RRTYRT objectForKey:@"themename"];
[gaping addSubview:LabelOne];
[gaping.layer setCornerRadius:5.8f];
[TableCell.contentView addSubview:gaping];
return TableCell;
}
Run Code Online (Sandbox Code Playgroud)
下面提到的代码是我在这个视图中的表视图,对于tableview的每个单元格,我需要更改这个UiView的颜色.我知道它有点令人困惑,所以如果有人可以帮助我,那将是可以理解的.
谢谢
在此代码着色返回值= 0X90EE90
coloring=[colorall objectForKey:globallinecolor];
shapeLayer.strokeColor = UIColorFromRGB(coloring).CGColor;
Run Code Online (Sandbox Code Playgroud)
但是这段代码给了我错误,任何人都可以帮助我如何通过UIColorFromRGB传递值.
嗨,我是codeigniter的新工作.我已经下载了最新版本的codeigniter并将其安装在localhost中.当我运行它时,它的工作完美
http://localhost:8888/projects/codeigniter/mr_easy/
Run Code Online (Sandbox Code Playgroud)
这个网址,但当我尝试crate和admin喜欢
http://localhost:8888/projects/codeigniter/mr_easy/admin
Run Code Online (Sandbox Code Playgroud)
它显示"在此服务器上找不到请求的URL/projects/codeigniter/mr_easy/admin".
==================我在routes.php中定义了这个
$route['default_controller'] = "welcome";
//$route['404_override'] = '';
/*admin*/
$route['admin'] = 'user/index';
Run Code Online (Sandbox Code Playgroud)
在控制器中的user.php中我已经放了这段代码片段
class User extends CI_Controller {
public function index()
{
$this->load->view('login');
}
}
Run Code Online (Sandbox Code Playgroud)
我有一个视图login.php
但每当我运行http://localhost:8888/projects/codeigniter/mr_easy/admin这个网址时,它的显示都没有找到.
我只是codeigniter的新手,关于为什么会发生这种情况的任何帮助,我怎么能解决这个问题是适当的
==================================的.htaccess ============== ===============
RewriteEngine on
RewriteBase /http://localhost:8888/projects/codeigniter/mr_easy/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /http://localhost:8888/projects/codeigniter/mr_easy/index.php?/$1 [L]
Run Code Online (Sandbox Code Playgroud) 在tableView页脚中,我有一个按钮
-(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section {
UIView *mainView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 39)];
[mainView setBackgroundColor:[UIColor clearColor]];
UIButton *themebutton= [UIButton buttonWithType:UIButtonTypeCustom];
themebutton.backgroundColor= [UIColor redColor];
[themebutton.layer setCornerRadius:5.8f];
themebutton.frame= CGRectMake(15, 0, 172, 39);
[themebutton setTitle:@"Create New" forState:UIControlStateNormal];
[themebutton setTitle:@"Create New" forState:UIControlStateSelected];
[themebutton setTitle:@"Create New" forState:UIControlStateHighlighted];
themebutton.titleLabel.font=[UIFont fontWithName:@"Raleway" size:19.8];
themebutton.titleLabel.textColor=UIColorFromRGB(0x707070);
[mainView addSubview:themebutton];
return mainView;
}
Run Code Online (Sandbox Code Playgroud)
我将titleLabel.textColor设置为灰色,但是当我点击该按钮时,它总是将文本颜色转换为白色.为什么会发生这种事情可以帮助我.
ios ×4
objective-c ×3
iphone ×2
uibutton ×2
codeigniter ×1
paypal ×1
paypal-ipn ×1
php ×1
uitableview ×1
uiview ×1