How to disable or remove close, minimise, resize button from Mac OSX App’s title bar while developing the same app in Xcode

While developing OSX App in Xcode you may want your Apps Window Controller should be without either close, minimise & resize button or all, Here is how to do it easily within Xcode.

 

Assumption: I assume you are using Storyboards while developing app in Xcode.

 
Step 01: Select Storyboard in left panel ‘Project Navigator’,

Continue reading “How to disable or remove close, minimise, resize button from Mac OSX App’s title bar while developing the same app in Xcode” »

Continue Reading Post

How to fix iTunes store operation failed, App Sandbox not enabled error that you get while validating and uploading Mac OSX app to iTunes Connect via Xcode

After you are done with coding Mac OSX App you may want to upload the same to iTunes Connect to distribute it through Mac AppStore.

 

While validating your app archive before uploading it to iTunes Store you will get following error something like this stating: Archive validation failed due to the issue listed below. iTunes Store operation failed. App Sandbox not enabled. The following executable must include the “com.apple.security.app-sandbox” entitlement with a Boolean value of true in the entitlement property list.

 
iTunes store operation failed app sandbox not enabled

Continue reading “How to fix iTunes store operation failed, App Sandbox not enabled error that you get while validating and uploading Mac OSX app to iTunes Connect via Xcode” »

Continue Reading Post

Disable a IBAction (id) sender button programatically in Xcode while developing app for iOS & OSX

While developing apps for OSX or iOS you will be wondering how to disable IBAction button programatically.

 
Here is how to do it.

 

Assumption: I assume you are using Storyboards for developing your apps within Xcode.

 
Step 01: Drag UIButton (iOS) or NSButton (OSX) on Storyboard. I Also assume that you have dragged three buttons on storyboard & you have named it as Start, Pause & Reset.

Continue reading “Disable a IBAction (id) sender button programatically in Xcode while developing app for iOS & OSX” »

Continue Reading Post

How to programmatically set image to UIImageView or NSImageView in Xcode?

Here is how to programmatically set image to UIImageView in Xcode,

 
Step 01: In your Xcode project in storyboard drag UIImageView from object library (located at Xcode right utilities sidebar). Give it definite size & now note down it’s size on paper to create same size image in you choice of image editor.

 
Step 02: Connect UIImageView to respective header file with name e.g. imageView

 
Your code will look something like this:

Continue reading “How to programmatically set image to UIImageView or NSImageView in Xcode?” »

Continue Reading Post

Here is how to set the text in an NSTextField programatically in Xcode while developing applications for OSX?

Here is step wise how to set text in NSTextField programatically,

 
First,
If you are using storyboards for app development.
Connect button storyboard to code class file i.e. .h header & .m method file or incase of swift class file of source code

 
Second,
Let assume that you have connected your NSTextField / Label as:

 

@property (nonatomic, assign) IBOutlet NSTextField *namedTextField;

 
Third,
So you will use dot operator called .stringValue & Here is how it can be done two ways:

Continue reading “Here is how to set the text in an NSTextField programatically in Xcode while developing applications for OSX?” »

Continue Reading Post

How to Fix Xcode Organiser error, ‘ERROR ITMS-4238: “Redundant Binary Upload. There already exists a binary upload with build version ‘1.0.1’ for train ‘ 1.0.1’” at SoftwareAssets/PreReleaseSoftwareAsset’

With updated new iTunesConnect for Apple Developers comes with many features one which is prerelease or TestFlights for External Testers. It allows App Developer to distribute it’s unreleased app to selected beta testers so that developer can get reviews & bug reports from them. One of this feature is that you can upload multiple copies of same app to iTunesConnect i.e. ITC.

 
When you try to do that you get following error

 
xcode organiser ERROR ITMS-4238 Redundant Binary Upload. There already exists a binary upload with build version

Continue reading “How to Fix Xcode Organiser error, ‘ERROR ITMS-4238: “Redundant Binary Upload. There already exists a binary upload with build version ‘1.0.1’ for train ‘ 1.0.1’” at SoftwareAssets/PreReleaseSoftwareAsset’” »

Continue Reading Post

How to fix Xcode error ‘Unable to boot iOS Simulator’

Xcode is one stop shop development app for OSX & iOS devices including all Macintosh Desktops & Laptop, iPhone, iPad & iPod touch.

 
Note: I Assume you are on OSX Yosemite 10.10.3 or Latest Operating System & Xcode 6 or later installed.

 
With release of Xcode 6 & later while developing & running your iOS app in iOS Simulator on your Mac you face with this bug something like this ‘Unable to boot iOS Simulator’ with blank screen.

 
Unable to boot iOS Simulator in Xcode

 
Here is how to fix it

 

Solution 01:

Continue reading “How to fix Xcode error ‘Unable to boot iOS Simulator’” »

Continue Reading Post

Here is how to fix Xcode iOS App Storyboard related error called ‘Frame for “Text View” will be different at run time.’

The Xcode error called ‘Frame for “Text View” will be different at run time.’ is frequent when you are trying to utilise Auto Layout with using reset to suggested constraints in Xcode Storyboard.

 

So here is how to fix it:

 
Step 01: Above Debug Are in your Xcode’s Storyboard’s view screen you will have 4 buttons at extreme right. Use pin button third from right to add new constraints per item at top, right, bottom & left & uncheck constrain to margins.

 
ios-xcode-app-storyboard-pin-debug-area

Continue reading “Here is how to fix Xcode iOS App Storyboard related error called ‘Frame for “Text View” will be different at run time.’” »

Continue Reading Post

Here is how to transition or Navigate from one iOS (iPhone or iPad) Storyboard UI Screen to other programatically by press of button

There are instances when you want to transition or navigate from one UI screen to other by press of button.

 
Yes you can link button visually by control clicking on button & then linking that button to required UI Screen on storyboard.

 
But I will show you how you can do it programatically with code defined & working differently for iPad & iPhone Storyboards.

 
I have used iOS Conditional coding syntax for differentiate iPhone & iPad Storyboards

 

Note: You can read about iOS Conditional Coding Here, How to detect user is using iPad or iPhone for iOS App at run time conditional coding purposes

Continue reading “Here is how to transition or Navigate from one iOS (iPhone or iPad) Storyboard UI Screen to other programatically by press of button” »

Continue Reading Post

How to hide ‘Back’ button on iOS App Xcode Storyboard Transition from one screen to next detail ui view screen

You really want to hide this ‘Back’ button when you transition from one screen to next probably detail view screen where Xcode put this automatically for you without asking you want it or not.

 
But here is work around how to hide this ‘Back’ button programmatically using Objective C,

 

[self.navigationItem setHidesBackButton:YES animated:YES]; // Objective C Code

 
Here is how to hide ‘Back’ button using Swift Language…

 

self.navigationItem.setHidesBackButton(true, animated:true);

 
Put this code in your viewDidLoad in .m file for Objective C based iOS App,

Continue reading “How to hide ‘Back’ button on iOS App Xcode Storyboard Transition from one screen to next detail ui view screen” »

Continue Reading Post