摘要:
#import "IMKChattingViewController.h"#import "IMCelebrityCell.h"#import "IMChatCell.h"#import "IMBottomView.h"#import "UIImageView+WebCache.h"#import "IMBuyView.h"#define naviHeight 44#define kBottomViewHeightDefault 43#define keyboardShow 阅读全文
摘要:
NSData *logoImageData = [logoDataArr objectAtIndex:0]; [formData appendPartWithFileData:logoImageData name:@"pic03"fileName:@"d.jpg"mimeType:@""]; NSData *imageData = [imageDataArr objectAtIndex:0]; [formData appendPartWithFileData:imageData name:@"pic"fileNam 阅读全文
摘要:
1,- (void)viewDidLoad2,veiwwillappear,一个写数据加载,一个写界面frame的调整 阅读全文
摘要:
bottomView.frame = CGRectMake(bottomView.frame.origin.x, self.contentView.frame.size.height - keyboardHeight - contentSize.height - textViewBgAndCursor*2, bottomView.frame.size.width, contentSize.height + textViewBgAndCursor * 2);#define textViewCursorToTop 1#define textViewHeightLimit 6#define tex. 阅读全文
摘要:
第一种成了自调用了, bottomView.frame = CGRectMake(bottomView.frame.origin.x, bottomView.frame.origin.y - contentSize.height, bottomView.frame.size.width, bottomView.frame.size.height + contentSize.height); self.inputView.frame = CGRectMake(self.inputView.frame.origin.x, self.view.frame.size.height - conten.. 阅读全文
摘要:
- (void)keyboardWillHide:(NSNotification*)notification { [UIViewbeginAnimations:nilcontext:nil]; [UIViewsetAnimationDelegate:self]; [UIViewsetAnimationCurve:UIViewAnimationCurveEaseInOut]; [UIViewsetAnimationDuration:[[[notification userInfo] objectForKey:UIKeyboardAnimationDurationUserInfoKey]... 阅读全文
摘要:
- (void)viewDidLoad{ [superviewDidLoad]; [self initData]; }-(void)viewWillAppear:(BOOL)animated{ [selfinitBottomView];} 阅读全文
摘要:
42---44, 阅读全文
摘要:
阅读全文
摘要:
第一章 心理影响实验1:插队一个心理学家跑到图书馆,请排队等候复印的人帮她一个小忙。"对不起,我有5页纸要复印,能不能让我先复印呢?"当她这样说时,60%的人答应了。然后,她换了一种说法:"对不起,能不能让我先复印呢?因为我要复印几页纸。"她只多加了两个字"因为",但同意的人居然增加到了93%。虽然心理学家早就知道,当我们请别人帮忙时,如果能够讲出一个理由,得到帮助的可能性就更大。但是这个实验证明,只是听到"因为"两个字,人们就会认为她是有理由的,从而给予帮助。这证明了人类存在心理定势,会不自觉地受到影响。提出请求 阅读全文