App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.
If your Apple Developer Program membership expires, your apps will no longer be available for download and you will not be able to submit new apps or updates. You will lose access to pre-release software, Certificates, Identifiers & Profiles, and Technical Support Incidents. However, your apps will still function for users who have already installed or downloaded them, and you will still have access to iTunes Connect and free development resources.
If your Apple Developer Enterprise Program membership expires, your apps will no longer be available for download and will no longer function for those who have already installed or downloaded them. You will still have access to free development resources.
另外在 Group 裡,建立 inverse relationship to Person.groups
linkingPerson: 這在計算群組裡有多少人的時候很好用
@interfacePerson:RLMObject@propertyNSString*sno;@propertyNSString*name;@propertyNSIntegergender;@propertyNSDate*birthday;@propertyNSString*phone;@propertyNSString*address;@propertyNSString*phoneForHome;@propertyNSString*phoneForOffice;@propertyNSString*email;@propertyNSString*reference;@propertyNSString*company;@propertyNSString*economy;@propertyBOOLmaritalStatus;@propertyNSString*children;@propertyNSString*total;@propertyBOOLotherFilter;@propertyNSString*otherFilterType;@propertyNSString*note;@propertyRLMArray<Group>*groups;@end@implementationPerson+(NSString*)primaryKey{return@"sno";}+(NSArray*)indexedProperties{return@[@"name"];}+(NSDictionary*)defaultPropertyValues{return@{@"sno":[NSStringstringWithFormat:@"%f",[[NSDatedate]timeIntervalSince1970]],@"gender":@0,@"birthday":[NSDatedateWithTimeIntervalSince1970:0],@"address":@"",@"phoneForHome":@"",@"phoneForOffice":@"",@"email":@"",@"reference":@"",@"company":@"",@"economy":@"",@"maritalStatus":@NO,@"children":@"",@"total":@"",@"otherFilter":@NO,@"otherFilterType":@"",@"note":@""};}@end@interfaceGroup:RLMObject@propertyNSString*name;@property(readonly)NSArray*linkingPerson;@endRLM_ARRAY_TYPE(Group)@implementationGroup+(NSString*)primaryKey{return@"name";}// Define "linkingPerson" as the inverse relationship to Person.groups
-(NSArray*)linkingPerson{return[selflinkingObjectsOfClass:@"Person"forProperty:@"groups"];}@end
iOS8 下很簡單,在 Storyboard 中將 Modal View Controller 設定為
Transition Style: Cover Vertical
Presentation: Over Current Context
iOS7 用上述的方式疊上去後,底下的 vc 會自動被移除,解法是用 UIViewControllerTransitioningDelegate
自行實作轉場動態,這裡是拿 pop 及 popping 來處理轉場動態。
先安裝 pod 'pop'
參考 popping 下的 PresentingAnimator.h/DismissingAnimator.h
#import "PresentingAnimator.h"
#import "DismissingAnimator.h"
#pragma mark - Button Actions
-(IBAction)showingAlert:(id)sender{AlertForSkipImportAddressBookViewController*vc=[self.storyboardinstantiateViewControllerWithIdentifier:@"AlertForSkipImportAddressBookViewControllerID"];vc.delegate=self;if(SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"8.0")){[selfpresentViewController:vcanimated:YEScompletion:nil];}else{/*Fixed transparent vc is not working in iOS7*/vc.transitioningDelegate=self;vc.modalPresentationStyle=UIModalPresentationCustom;[selfpresentViewController:vcanimated:YEScompletion:nil];}}#pragma mark - UIViewControllerTransitioningDelegate
-(id<UIViewControllerAnimatedTransitioning>)animationControllerForPresentedController:(UIViewController*)presentedpresentingController:(UIViewController*)presentingsourceController:(UIViewController*)source{return[PresentingAnimatornew];}-(id<UIViewControllerAnimatedTransitioning>)animationControllerForDismissedController:(UIViewController*)dismissed{return[DismissingAnimatornew];}#pragma mark - AlertForSkipImportAddressBookView Delegate
-(void)clickAlertButtonAtIndex:(NSInteger)buttonIndex{switch(buttonIndex){caseAlertButtonIndexCancel:break;caseAlertButtonIndexSkip:break;default:break;}}
__weak__typeof__(self)weakSelf=self;if([btnForRemovebk_hasEventHandlersForControlEvents:UIControlEventTouchUpInside]){[btnForRemovebk_removeEventHandlersForControlEvents:UIControlEventTouchUpInside];}[btnForRemovebk_addEventHandler:^(idsender){__strong__typeof__(weakSelf)self=weakSelf;AlertForMyCollectsViewController*vc=[self.storyboardinstantiateViewControllerWithIdentifier:@"AlertForMyCollectsViewControllerID"];vc.delegate=self;if(SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"8.0")){[selfpresentViewController:vcanimated:YEScompletion:nil];}else{// Fixed transparent vc is not working in iOS7
vc.transitioningDelegate=self;vc.modalPresentationStyle=UIModalPresentationCustom;[selfpresentViewController:vcanimated:YEScompletion:nil];}}forControlEvents:UIControlEventTouchUpInside];