ios
wzt10
这个作者很懒,什么都没留下…
展开
-
UITableView Cell
//指定有多少个分区(Section),默认为1- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return 1;} //指定每个分区中有多少行,默认为1- (NSInteger)tableView:(UITableView *)tableView numberOfRowsI原创 2011-06-10 16:09:00 · 938 阅读 · 0 评论 -
ios 用个人签名的应用不能同时发布企业 Distribution
个人 Distribution企业 Distribution,不能发布到App store原创 2012-07-18 15:23:43 · 337 阅读 · 0 评论 -
ios 应用之间交互
didFinishLaunchingWithOptions- (void) doLogic{NSString *paraStr = [NSStringstringWithFormat:@"%@://return?user=&result=",APP_NAME]; NSString *encodeStr = [CommonUtilsstringByU原创 2013-03-08 15:14:07 · 499 阅读 · 0 评论 -
Mac 下 App Store 更新 其他账户的应用
app store 更新 其他账户的应用 1,用自己的账号登录App Store;2,查询需要更新的应用,例如xcode;3,系统偏好设置,点击Spotlight,选择隐私tab,添加Macintosh HD;4,回到App Store, 重复第2步,发现刚刚的update变成了install,但是点击无效果;5,回到第3步,删除刚刚添加的隐私tab项目;6,回到A原创 2013-03-20 10:47:06 · 1424 阅读 · 0 评论 -
漂浮
#define TIME_INTERVAL 1.3f [self performSelector:@selector(autoRun) withObject:nil afterDelay:TIME_INTERVAL ];- (void)autoRun { if原创 2013-03-26 10:52:02 · 380 阅读 · 0 评论 -
bezierPath 不显示
+ (UIBezierPath *)bezierPathWithRect:(CGRect)rect;+ (UIBezierPath *)bezierPathWithOvalInRect:(CGRect)rect;原创 2013-03-26 10:53:15 · 501 阅读 · 0 评论 -
ios UI size Mac
PixelWindowUI size原创 2013-07-29 14:18:36 · 406 阅读 · 0 评论 -
Notes
★ Core Data[[NSManagedObjectModel alloc] initWithContentsOfURL:momURL] VS [[NSManagedObjectModel mergedModelFromBundles:nil] retain]appDelegate.moc★ appDelegate实例CEIBSAppDelegate *appDele原创 2012-02-03 14:21:40 · 4010 阅读 · 0 评论 -
实用工具
Transmit (FTP)svnX 1.3.4.dmg (SVN)MarkMan_1.40.7.air [AdobeAIR.dmg] (UI)资源已经存到我的资源原创 2014-03-19 17:23:21 · 424 阅读 · 0 评论 -
Url decode & encode
// decodeNSString *targetString = [pdfStrstringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];// encode NSString *targetString = [pdfStr stringByAddingPercent原创 2015-01-16 12:01:48 · 406 阅读 · 0 评论 -
ios8 播放本地文件 [initFileURLWithPath VS fileURLWithPath]
NSString *path = [[NSBundlemainBundle] pathForResource:@"test"ofType:@"mov"]; if (path) { NSLog(@"路径正确"); NSURL *movieURL = [[NSURLalloc] initFileURLWithPath:path];原创 2015-01-15 14:00:15 · 524 阅读 · 0 评论 -
presentPopoverFromRect
_UIPopoverArrowDirection =UIPopoverArrowDirectionUp;[_popViewControllersetPopoverContentSize:CGSizeMake(_frame.size.width,PopViewHeight)]; [super setPopView];[_popViewControllerpresentP原创 2013-03-05 16:36:28 · 583 阅读 · 0 评论 -
UIButton imageEdgeInsert titleEdgeInsert
#define BUTTOM_ICON_W 20.fimageEdgeInsert:UIEdgeInsetsMake(11.f, (BUTTON_WIDTH-BUTTOM_ICON_W)/2,21.f, (BUTTON_WIDTH-BUTTOM_ICON_W)/2)titleEdgeInsert:UIEdgeInsetsMake(12.f, -21, -10.f,1原创 2013-03-05 16:39:31 · 630 阅读 · 0 评论 -
iOS runtime
"Runtime is everything between your each function call."id obj;// Methodif ([obj respondsToSelector:@selector(functionName:)]) {}// Classif ([obj isKindOfClass:[NSArray class]] ) {原创 2013-01-24 10:35:38 · 208 阅读 · 0 评论 -
UIAlertView vs UIActionSheet
@interface XXViewController : XXNavigationController {} UIAlertView *alert = [[UIAlertView alloc] initWithTitle:_ContractCallNum message:nil delegate:self原创 2011-06-13 19:18:00 · 365 阅读 · 0 评论 -
push notify
push notify- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {{// Other Code N原创 2011-07-12 16:23:59 · 1038 阅读 · 0 评论 -
NSLog
%@ Object%d, %i signed int%u unsigned int%f float/double%x, %X hexadecimal int%o octal int%zu size_t%p pointe原创 2011-08-09 09:59:09 · 264 阅读 · 0 评论 -
ipa图片资源
1,ipin.py 放到png目录里面;2,终端进入目录,执行 python ipin.py3,转化 ipa图片资源成功。原创 2011-11-24 16:30:38 · 534 阅读 · 0 评论 -
ABRecordRef
- (void)doAddContacts:(id*)sender{ if (_user.phoneNumber ==nil || [_user.phoneNumberisEqualToString:@""]) { return; } ABRecordRef* person = [ABContentUtilselPerson原创 2012-02-21 16:36:00 · 1013 阅读 · 0 评论 -
pushViewController VS presentModalViewController
自动档不行,就用手动档// Back Button UISegmentedControl *segmentedControl = [[UISegmentedControlalloc] initWithItems:[NSArrayarrayWithObject:NSLocalizedString(NSBackBtnTitle,nil)]]; [原创 2012-02-21 16:32:06 · 882 阅读 · 0 评论 -
UITableView 手势
3.2以前#pragma mark - touch methods@interface BaseUITableViewCell :UITableViewCell{ CGPoint touchBeganPoint; BaseUIViewController *_baseUIVC;}}@property (nonatomic,原创 2012-04-01 16:26:43 · 1199 阅读 · 0 评论 -
ios 发短信
1,加入MessageUI.framework2,XXViewController.h#import "MessageUI/MessageUI.h"@interface XXViewController :UIViewController MFMessageComposeViewControllerDelegate>3,XXViewController.m- (vo原创 2012-04-09 16:14:37 · 580 阅读 · 0 评论 -
UISwipeGestureRecognizer
/* // add recognizer UISwipeGestureRecognizer *recognizer;recognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(manualChangeView:)];[recognizer setDirection原创 2012-09-02 18:44:36 · 234 阅读 · 0 评论 -
~/Library/Developer/Xcode/DerivedData
~/Library/Developer/Xcode/DerivedData原创 2012-09-12 14:39:13 · 1152 阅读 · 0 评论 -
couldn’t be opened because you don’t have permission to view it
原创 2015-01-23 15:25:21 · 503 阅读 · 0 评论