This file contains 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
#import <UIKit/UIKit.h> | |
@interface FullWidthTableViewCell : UITableViewCell | |
@end |
This file contains 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
UILaunchImage = Default // This is for iOS 6, if you need it | |
UILaunchImages // iOS 7, 8 | |
- [0] | |
- UILaunchImageName = Default | |
- UILaunchImageMinimumOSVersion = 7.0 | |
- UILaunchImageSize = {320, 480} | |
- UILaunchImageOrientation = Portrait | |
- [1] | |
- UILaunchImageName = Default-568h |
This file contains 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
#import "RadialGradientBackgroundView.h" | |
#define COLOR_VERDE_1 [UIColor colorWithRed:((float)0x00/0xFF) green:((float)0x9A/0xFF) blue:((float)0xA1/0xFF) alpha:1] | |
#define COLOR_VERDE_2 [UIColor colorWithRed:((float)0x28/0xFF) green:((float)0xB2/0xFF) blue:((float)0xA2/0xFF) alpha:1] | |
@implementation RadialGradientBackgroundView | |
/* | |
// Only override drawRect: if you perform custom drawing. | |
// An empty implementation adversely affects performance during animation. |
This file contains 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
#import <UIKit/UIKit.h> | |
@interface UIView(ChangeConstraint) | |
- (void)constraintChangeHeight:(CGFloat)fH; | |
@end |
This file contains 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
public void requestWithSomeHttpHeaders() { | |
RequestQueue queue = Volley.newRequestQueue(this); | |
String url = "http://www.somewebsite.com"; | |
StringRequest postRequest = new StringRequest(Request.Method.GET, url, | |
new Response.Listener<String>() | |
{ | |
@Override | |
public void onResponse(String response) { | |
// response | |
Log.d("Response", response); |
This file contains 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
// To check possible confiugrations of NSAppTransportSecurity, launch this command: | |
nscurl --verbose --ats-diagnostics https://example.com | |
otherwise | |
<key>NSAppTransportSecurity</key> | |
<dict> | |
<key>NSAllowsArbitraryLoads</key> | |
<true/> | |
</dict> |
This file contains 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
# Launch installer | |
wget -O - http://autoinstall.plesk.com/one-click-installer | sh | |
# Add firewall port permission | |
firewall-cmd --zone=public --add-port=8443/tcp --permanent | |
firewall-cmd --zone=public --add-port=8447/tcp --permanent | |
firewall-cmd --reload |
This file contains 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
#define IS_IPAD (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) | |
#define IS_IPHONE (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) | |
#define IS_RETINA ([[UIScreen mainScreen] scale] >= 2.0) | |
#define SCREEN_WIDTH ([[UIScreen mainScreen] bounds].size.width) | |
#define SCREEN_HEIGHT ([[UIScreen mainScreen] bounds].size.height) | |
#define SCREEN_MAX_LENGTH (MAX(SCREEN_WIDTH, SCREEN_HEIGHT)) | |
#define SCREEN_MIN_LENGTH (MIN(SCREEN_WIDTH, SCREEN_HEIGHT)) | |
#define IS_IPHONE_4_OR_LESS (IS_IPHONE && SCREEN_MAX_LENGTH < 568.0) |
OlderNewer