NSString* deviceName= [[UIDevicecurrentDevice] uniqueIdentifier];
NSString* localizedModel=[[UIDevicecurrentDevice] localizedModel];
result945 發表在 痞客邦 留言(1) 人氣(198)
result945 發表在 痞客邦 留言(0) 人氣(598)
NSMutableArray Sory
===============================================================
self.Dict_MutablemsgDlist = [self.Dict_msgDatamutableCopy];
result945 發表在 痞客邦 留言(0) 人氣(973)
今天Lion升級為10.7.3
Archive程式時發生了
warning: iPhone/iPod Touch: icon.png: icon dimensions (0 x 0) don't meet the size requirements. The icon file must be 57x57 pixels, in .png format (-19014) Unable to validate your application. - (null)apple
解決方法為:
result945 發表在 痞客邦 留言(0) 人氣(38)
今天在測試push時發生了
Error in registration. Error: Error Domain=NSCocoaErrorDomain Code=3000 "未找到應用程序的“aps-environment”的權利字符串"
其實是原本的profile太舊了、只要重新renew、再下載profile就行了
至於push的教學可以參考以下網站
result945 發表在 痞客邦 留言(0) 人氣(373)
主要參考這篇文章
http://mobile.tutsplus.com/tutorials/iphone/ios-sdk-keeping-content-from-underneath-the-keyboard/
result945 發表在 痞客邦 留言(0) 人氣(114)
UIViewController<UITextFieldDelegate>
//inputtext
result945 發表在 痞客邦 留言(0) 人氣(413)
字串處理相關網站
http://hi.baidu.com/rone2000_/blog/item/9d30ce1dc06f5b6cdab4bd97.html
計算字串長度
CGFloat word_width = [yourstring sizeWithFont:[UIFont fontWithName:@"Arial" size:18]].width;
result945 發表在 痞客邦 留言(0) 人氣(587)
有一串內文要計算scroll view所需要的長度
CGSize constraint = CGSizeMake(300 - (0 * 2), 20000.0f);
result945 發表在 痞客邦 留言(0) 人氣(154)
//普通bbutton
UIButton *nearBtn = [UIButton buttonWithType:UIButtonTypeRoundedRect];
nearBtn.frame = CGRectMake(115.0f, 150.0f, 88.0f, 40.0f);
NSString *near_btnName = [NSString stringWithFormat:@"test button"];
[nearBtn setTitle:near_btnName forState:UIControlStateNormal];
[nearBtn setTitleColor: [UIColor blackColor] forState: UIControlStateNormal];
[nearBtn addTarget:self action:@selector(go_nearPage:) forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:nearBtn];
result945 發表在 痞客邦 留言(0) 人氣(2,994)