.net?????iOS - ???
???????????? ???????[ 2014/8/5 10:14:03 ] ????????.NET IOS ???
????· OC ??????????? interface ?????????????? implementation ????????? OC ?л??????????? "class"???????? "??????" ??????????? "??????" ????????????? import ?????????? import????????? import ???????????????????????? class??????????????????????????????????????????????? import ??????????????????????????????????????????з???????????????????????????÷?????@class SLTest;????????????????????A??B??A ??????????? B b;??B ??????????? A a;???????? import????????????"????????????????"????????????????????????????
????· OC ?з????????????? "[]"?????? [aaa AAA]???? .net ?м?????? aaa.AAA(); ???в???????????????? [aaa BBB:1 CCC:2]???? .net ?б???? aaa.BBB:CCC:(1?? 2); ?????OC ?? ":" ???????????ж???? ":" ????ж??????????????????????????????????е??????????????????????в??????????????? -(void)BBB:(NSInteger)i CCC:(NSInteger)j;???????? .net ?к???????
????· ????????????????????????????????OC ?л????????? alloc + initXXX ????????и??????????????????????????????????alloc ?????????棬initXXX ????????????????÷?????[[NSString alloc] initWithFormat:@"this is a string."]???????????????????? NSString ??????? "this is a string." ?????饗initWithFormat:() ?? NSString ???з????????????????????? initXXX() ?????????е???? init() ??????????? OC ??? new() ?????????????????á????? .net ?? new() ???????OC ??????????????÷???????????????? NSString ?е? initWithFormat() ?????? initWithCoder()?????? .net ?? new() ???????
· get/set ??????.net ??????????? { get; set; } ???????????????????OC ?????????
// ??? property ?????????
// ?????????????????????
// nonatomic ??????????????????????????????????????? nonatomic ???????????? atomic
// ???????????? assign??NSString ?? copy???????? strong??retain???????????????????????????й???
// ?????? readonly??getter ???????й???
@property (nonatomic?? assign) BOOL balabalabala;
??????????仰???????????????????е????????????? get/set ???????????????????д get/set ???????? .m ??????????ɡ?
????· ??????棬"-" ??????????????????????????"+" ????????????? .net ?????????????
????· OC ?е? id ???????????????? js ??? var?????? .net ???????????? dynamic????ò????? dynamic ?????????????????????????????????
????· self ???????? .net ?е? this ??????super ???????? .net ?е? base ??????
????· block????? .net ?е??????????????????????????????"^"????????????????????λ??????????????????????????б?????磺
// ???????????
// ??????? TEST1
// ?????б????
void (^TEST1)(void) = ^ {
NSLog(@"TEST1");
};
TEST1();
// ????????? NSString *
// ??????? TEST2
// ?貧????? NSInteger ????????
NSString *(^TEST2)(NSInteger) = ^(NSInteger i) {
NSLog(@"TEST2 parameter: %i"?? i);
return @"test2";
};
NSString *result = TEST2(10);
NSLog(@"%@"?? result);
// TEST3 ????????????? block ???????? block ?????????貧????? NSString ????????
- (void)TEST3:(void (^)(NSString * parameter))block
{
NSLog(@"TEST3");
// ???? block???????????
block(@"TEST3 parameter");
}
// ???? TEST3?????? block
[self TEST3:^(NSString *parameter)
{
NSLog(@"parameter: %@"?? parameter);
}];
?????÷?? .net ????????????????
· category????????? .net ?е???????????? public static bool IsValidEmailAddress(this string str);??OC ?У???????????????д????
/**
NSString+Category.h
?????????????OC ???????????+?????
**/
// ??????????????????????????????????????????????????
@interface NSString (Category)
// ?????????????ж??????????? Email ???
- (BOOL)isValidEmailAddress;
@end
/**
NSString+Category.m
**/
@implementation NSString (Category)
// ??????
// ???????巽??????????????
- (BOOL)isValidEmailAddress
{
return [self length] % 2 == 0;
}
@end
// ?????????? .h ????????????????????????
NSString *str1 = @"1";
NSString *str2 = @"11";
NSLog(@"%i"?? [str1 isValidEmailAddress]);
NSLog(@"%i"?? [str2 isValidEmailAddress]);
????· delegate??Э?飬?????????? .net ?е? delegate??.net ?е? delegate ???????? OC ?е? block??????? delegate ?????? .net ?е??????????????????????????????????????????????????????????????????????????????????????? "???Э??"??????????????????????????????????????????????????????
????????????? "???Э??"???? OC ?е? delegate?????????????? delegate ?е?????????????????????????????????????????????????????????
????OC ???Щ???????????????????????????????????????????? .net ?? winform ??????iOS ????? MVC ????????????? .net ??????????????????????????????
??????????????? App??????????λ????°????????????????????????????????????????????????????
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
???ios???????????????Щ????IOS???á?????豸?????TestAgent??????????????????MR????ν???IOS?豸???????????????????????MobileRunner iOS???????iOS???????iOS???????????? ???????????iOS??JSON?????????????iOS UnitTest?????????iOS?????????????6С???BugAppium iOS 10 ????????iOS???????iOS UI???????????iOS APP????????????????????????????????ν???iOS????????????????iOS?湫?????????????????????????????????????iOS???????????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????