iOS Development is easy with XCode, Swift3, UITableView, cocatouch, let's build iPhone, iPad and Macbook Applications.

Explaning syntax for @property id<delegateName>

I see a lot of code references when writing delegates using something likes @property (nonatomic, weak) id<mySuperCoolDelegate> delegate; normally where id<mySuperCoolDelegate> is, is the data type of the property. So the questions are: Is my understanding correct, that above syntax is telling the compiler data type of the id is mySuperCoolDelegate? Any other examples where […]

iAds not working in Simulator and device

When I run my application I get this message for iAd banner view. What does it mean? Error Domain=ADErrorDomain Code=3 “The operation couldn’t be completed. Ad inventory unavailable” UserInfo=0x60455a0 {ADInternalErrorCode=3, NSLocalizedFailureReason=Ad inventory unavailable} This is my code: #pragma mark – #pragma mark create BannerView: – (void)createAdBannerView { Class classAdBannerView = NSClassFromString(@”ADBannerView”); if (classAdBannerView != nil) […]

Filtering video with GPUImage

I’m using GPUImage in my application and trying to filter video. Live video filtering is working well. The trouble comes up when I try to read a video into memory from the filesystem and apply filters using the code posted on the sunsetlakessoftware tutorial page and in the SimpleVideoFileFilter demo. EDIT: I realized that my […]

PFLogInViewController no longer recognized?

I am building an iPhone app on iOS 8 with the latest version of Parse. Does anybody know if the PFLogInViewController is still a thing? I’m having an incredibly hard time including it in my project. Everything else with Parse works perfectly fine. The only problem is that PFLogInViewController and PFSignUpViewController (and their delegates) are […]

How do I access and manipulate JPEG image pixels?

i have a jpg file. I need to convert it to pixel data and then change color of some pixel. I do it like this: NSString *string = [[NSBundle mainBundle] pathForResource:@”pic” ofType:@”jpg”]; NSData *data = [NSData dataWithContentsOfFile:string]; unsigned char *bytesArray = dataI.bytes; NSUInteger byteslenght = data.length; //——–pixel to array NSMutableArray *array = [[NSMutableArray alloc] initWithCapacity:byteslenght]; […]

Mouseover in NSTableView

I’m having trouble creating a mouseover function with an NSTableView. The idea is that (if the feature is selected in prefs) placing the mouse pointer above a particular row in an NSTabelView will display a small popup window with additional information regarding the entry in that particular row. The effect should not be immediate (as […]

Geo-Fencing didEnterRegion and didExitRegion methods not called?

Hi Guys Am working on Geo-Fencing! Location manager didDetermineState is calling properly but when i entered region didEnterRegion and didExitRegion never been invoked. Here my code is **ViewController.m** GeofenceMonitor * gfm = [GeofenceMonitor sharedObj]; NSMutableDictionary * fence1 = [NSMutableDictionary new]; [fence1 setValue:@”office” forKey:@”identifier”]; [fence1 setValue:@”13.04765701″ forKey:@”latitude”]; [fence1 setValue:@”80.18752289″ forKey:@”longitude”]; [fence1 setValue:@”100″ forKey:@”radius”]; [fence1 setValue:@”11″ forKey:@”id”]; […]

How to Identify tab bar items?

I would like to know how can I identify the items in the tab bar? I have a tabBarController that contain NAvigationController like this: NSMutableArray *localViewControllersArray = [[NSMutableArray alloc] initWithCapacity:6]; Each navigationController is inside this array. I manage the actions in each tab bar item with the method: – tabBarController:(UITabBarController*)tabBarController didSelectViewController:(UIViewController*)viewController And I in this […]

MFMailComposeViewController and privacy – hiding the To: field?

I am creating my second iPhone app, and I’ve included a feedback form using MFMailComposeViewController. This displays and works correctly, but I’m not sure I want all my users to see my email address. Is there any way to set the to: field to my email address, and then hide it so that the user […]

ObjC: BAD ACCESS when call blocks ^{} in later functions?

Following this discussion, I’ve encountered a bad access issue; A loop has several steps: a, b, c, … x, y, z: -(void)cycle:(float)delta{ [self stepA] [self stepB] // etc. [self stepZ] } At some point, step x does the following: // IRQ is an NSMutableArray // Self is a reference to the engine running the cycles […]