Tag: xcode

UITableView scrolling madness

I have a table view which gets data from a core data array. When I try to assign the value of the object “Post” to something or NSLog it the table scrolling lags. Here is my code: – (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @”CellCell”; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; Post […]

Change color of cell based on value out of array iOS

Any idea what’s wrong with this: if ([status isEqualToString: @”green”]) [[cell contentView] setBackgroundColor: [UIColor colorWithRed: 200 green: 191 blue: 231 alpha: 1]]; I defined the array in the @implementation. Xcode shows the following error: no visible @interface for NSArray declares the selector isEqualToString:. The idea is that the cell background becomes green when the string […]

Change status bar text color ios other than black or white

I would like to know, is it possible to change the text color of status bar other than black or white. I check below two links where its answers are only to change black or white. What i want is green or blue or any color. Is it possible. first , Second

Is it possible to access iPhone/iPad app files without jailbreak?

I mean not in-code access. For example I have installed app (through Testflight service) and I want to view/modify its resources. I can download Library data from XCode organizer but not whole app. Maybe there is a way to download the app (to upload it back after modifications)?

XCode: How can an IBOutlet connection disappear and still exist?

How can an outlet referencing connection disappear in the connections inspector but still be there when you right-click on it and that black outlet window opens? I had a problem Swift 3: Image does not show when setting isHidden=false in which a background UIImageView did never appear when isHidden was set to false. I found […]

How can I show an image in a NSView using an CGImageRef image

I want to show an image in NSview or in the NSImageView. In my header file I have @interface FVView : NSView { NSImageView *imageView; } @end here is what I been trying to do in my implementation file: – (void)drawRect:(NSRect)dirtyRect { [super drawRect:dirtyRect]; (Here I get an image called fitsImage…….. then I do) //Here […]

Can i switch gdb client on XCode?

How can I switch to use a different gdb client in Xcode on MACOS? Or if this is possible at all? Thank you.

Adhoc provision profile

I am new to iPhone development. I have this problem : I am working with another developer and he has generated an ADhoc_APP.mobileprovision to distribute the application to the testers. He can generate the .ipa with his machine by doing the build/archive/share… He sent me the adhoc_app.mobileprovision by email to install it in my xcode. […]

Cocoapods for development only

Is there a way to use a dependency only in development? I don’t want to ship the Reveal SDK :/ I’m searching for something similar to #ifdef DEBUG Can’t find anything in the cocoapods docs.

Objective-C – Get number of decimals of a double variable

Is there a nice way to get the number of decimals of a double variable in Objective-C? I am struggling for a while to find a way but with no success. For example 231.44232000 should return 5. Thanks in advance.