Let's say I have NSManagedObject Zoo, and he got connection oneToMany to 'Cat' named cats, this connection is NSSet. When I use the function 'filteredSetUsingPredicate', I get a crash with the following code: Zoo *zoo = //intance of our zoo with all
I have an app, written in Objective-C, that needs to display a UITable of numbers. The list of numbers is taken from an NSMutableArray whose information is taken from a .plist file. Normally, all is fine. However, the app includes settings to organiz
I want to add a custom activity (UIActivity) to a SFSafariViewController that I am presenting in my app. How can I do this? --------------Solutions------------- 1. Create a subclass of UIActivity. Implement all required methods of the class, and when
I have been working on my app for a while now and all of a sudden, I realised something weird. I always thought that the variable that was declared before viewDidLoad only gets called on startup when the ViewController appears. However, it appears th
I've been trying to get my c code to calculate all wilson primes which are all numbers that answer the equation ((p-1)! + 1)/(p^2) with a whole number. I didn't think that there was a preexisting math function to calculate factorials so I wrote my ow
I created an application capable of reading the camera flir one . Now I wanted to send these images to your computer (no need to send multicast , or htttp ) . Exploring this idea I saw that it would be possible using the UDP protocol and receive imag
I am trying to make video upload on the server. I am using Alamofire. I'm getting closer to a solution but ... I have a multipart data form method, which includes such parameters "param1":"test", "param2":["1", &quo
Lets suppose I have an array like this NSArray* arr = @[@"MA",@"TU",@"WE,@"TH",@"FR",@"SA",@"SA"]; and I want to sort them like this:arr = @[@"FR",@"MA",@"TU",@
I have problem, how i can create left and right views on WMPageController. I want to create arrow buttons to switch controllers. UIView* rightView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 100, 50)]; UILabel *messageLabel = [[UILabel alloc] in
I have been having a nightmare of a time with this problem. I have this UIWebView: webview = UIWebView() webview.userInteractionEnabled = true webview.scalesPageToFit = true webview.becomeFirstResponder() webview.delegate = self webview.scrollView.de
seem a bit old question but I have try some solution but did not work. I doubt that is because old Facebook frame work is not working anymore. I have a Objective-C project that use FacebookSDK. I have copied FacebookSDK.framework into project folder
I would like to copy some of the features displayed here: So I would like the user to apply a CIBumpDistortion filter to an image and let him choose 1) where exactly he wants to apply it by letting him just touch the respective location on the image
Firstly speaking, I'm very new to iOS platform. I've asked this question yesterday but couldn't find out a way, and for so I'm asking for the second time. I'm making a project where I've used sqlite3 database. I've defined a custom DBManager class of
I have an obj-c based app I'm looking to convert over to Windows using the Windows Bridge for iOS. But my app uses pods and winobjc doesn't yet support pods so it will not convert any of the source files in a workspace. My first thought was to just m
In iOS wifi On/Off notification for app closed or quite. When app closed , we change Wifi, On/Off wifi when app closed Already i was tried below code, but it will work , when app close at the time the notification will come. - (void)applicationDidEnt
I have written a sample code to make a server connection. Please find the code that i have written below. __weak typeof(self) weakSelf = self; self.dataTask = [defaultSession dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLResponse
I have a NSMutableDictionary. By right, the value will be similar like this: 3 = "<Family: 0x7ff1d2c4de30>"; but after some navigation to other screen, then goes back to this screen, the dictionary becomes something like this: (__NSDiction
I am writing a tweak to change the size of the control center. I am trying to set the frame depending on the orientation. This is the code: %hook SBControlCenterContainerView -(void)layoutSubviews{ %orig; CGRect screenBounds = [[UIScreen mainScreen]
I try hard to find some answers in websites,but none of them can help me.The problem is caused by using char * and int * in my projecet.
I need to get a Substring from a NSString. I need to get the substring after - if it is followed by E until the next - For example, I have this string A-BB-CD-EF_10AW-ZWE_EG I need to get the EF_10AW. Any idea on how can I iterate through an NSString