This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func UIColorFromHex(rgbValue:UInt32, alpha:Double=1.0)->UIColor { | |
let red = CGFloat((rgbValue & 0xFF0000) >> 16)/256.0 | |
let green = CGFloat((rgbValue & 0xFF00) >> 8)/256.0 | |
let blue = CGFloat(rgbValue & 0xFF)/256.0 | |
return UIColor(red:red, green:green, blue:blue, alpha:CGFloat(alpha)) | |
} | |
view.backgroundColor = UIColorFromHex(0x323232,alpha: 1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use App\Center; | |
class SearchController extends Controller { | |
OlderNewer