摘要:
在开发工作中遇到了一个对我来说非常难得问题,搞了两天呀,都虚脱了,终于骗到大神给的demo做了出来效果是这样首先后台的同事传一个字符串。。拒绝传数组,那么我们就要学会分割!NSString *tagStr = [dictionary valueForKey:@"tags"];NSArray *sta... 阅读全文
摘要:
在开发ios8中大家会发现系统自带的分割线前面会有15个像素的空余,那么怎么才能像以前一样的,我看到别人的博客有提到首先在viewdidload中设置好你的系统分割线,然后加上如下代码listView=[[UITableView alloc] initWithFrame:CGRectMake(0, ... 阅读全文
摘要:
#pragma mark - 正则表达式- (BOOL)isMobileNumber:(NSString *)mobileNum{ /** * 手机号码 * 移动:134[0-8],135,136,137,138,139,150,151,157,158,159,182,187,188 * 联... 阅读全文
摘要:
-(void)scrollViewDidScroll:(UIScrollView *)scrollView{ double pageDouble = self.headerScroll.contentOffset.x/self.headerScroll.frame.size.width; int... 阅读全文
摘要:
由于解析的结果如{"result":[{"id":1,"title":"需要澳洲鲍鱼四只","content":null,"createTime":"","memId":0,"orgId":1,"corpName":"红星美凯龙南京中央路商场","corpLogo":null,"memName":n... 阅读全文
摘要:
#import #import "MainViewController.h"#import "Reachability.h"@interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window;@pro... 阅读全文
摘要:
可以在故事版中设置好所需要的图片,然后现在h文件中声明按钮的属性和方法- (IBAction)moodViewShow:(id)sender;@property (weak, nonatomic) IBOutlet UIButton *faceBtn;并且与故事版完成连接,然后在按钮的方法里设置选中... 阅读全文
摘要:
#import @class ChatMessage;@interface ChatViewController : UIViewController- (IBAction)inputClick:(id)sender;- (IBAction)sendMessage:(id)sender;@prope... 阅读全文
摘要:
#import #import "SRWebSocket.h"@interface ViewController : UIViewController//- (IBAction)SaveLogin:(id)sender;@property (weak, nonatomic) IBOutlet UIT... 阅读全文
摘要:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ // Override point for customization aft... 阅读全文