Mandar Apte

UI/UX Designer from Mumbai, Maharashtra, India.

Articles

  • How do you add a button beside the back button, which is usually required in the details view of the table or UI View Controller of your iOS app for your Apple Xcode Project?

    It always occurs when you are using the table view controller in your iOS Xcode project & when you navigate from the table view cell to the detail view of your app in the storyboard on the iOS Simulator or the actual device, the ‘Back,’ button Appears at the top left. What if you want to add a button beside the ‘Back’ button, And you want to know how? Here is the solution,

    You have to add the following code in your ‘viewdidLoad’ function in your desired ViewController.m file:

    self.navigationItem.leftItemsSupplementBackButton = YES;
    
    (more…)
  • How programmatically change the global Tint Colour of your iOS App in the Xcode project. i.e. Changing all UIBarButtonItems tint colours at once.

    You may wonder how to programmatically change the global Tint Colour of your iOS App in the Xcode project. i.e. Changing all UIBarButtonItems tint colours at once

    Without selecting every single button & changing the tint for every single one & for the buttons added after that.

    Here is the solution. As simple as a single line of code will remove the hassle from your mind & you can even re-change the global tint colour again by changing a few letters

    Solution:
    In your iOS App’s Xcode projects AppDelegate.m under function ‘didFinishLaunchingWithOptions’ add the below line

    (more…)
  • How to add four or more UIBarButtonitem at navigation bar with custom image through code?

    I assume you have gone through an earlier article related to this topic called:

    How to add four or more navigation bar buttons in your iOS App XCode Project

    Background:
    Now you will be wondering how you can add a fourth button to the navigation bar of your iOS app with a custom image through code

    Here is the solution:

    (more…)
  • How to add four or more navigation bar buttons in your iOS App XCode Project

    I assume that you have added a navigation controller through Editor > Embed In > Navigation Controller in the xib (or formally nib) file in your XCode Projects’ Storyboard

    Problem:
    For example, you have added an Action button for Tweet Sheet on the Left, a Menu button on the right, and a Title button in the middle. But these three items don’t allow you to add a button at the second left position. This additional functionality enriches your app’s usp (unique selling point) or usability.

    Reason:
    It turns out this is a limitation of Interface Builder. It will only let you configure a single left and correct bar button item in a navigation bar. Don’t worry; you can still configure your remaining items in code. For example,

    Solution:
    Add the following code in the ‘viewDidLoad’ function in your View Controller’s Header file, i.e .h file

    (more…)
  • Jetpack Related Posts not working or displaying – appearing on WordPress Self Hosted Website Domain or Subdomain, Here is why it is happening & how you can fix it.

    With JetPack for WordPress, Automattic is releasing wordpress.com features for WordPress self-hosted websites.

    One feature in that release is ‘Related Posts,’ where you can activate this inbuilt plugin-like functionality to scan your self-hosted website and display the desired number of related posts under each blog post.

    This feature helps users discover and read related post category content more easily. It also increases the website’s click-through rate, i.e., the Average number of pages visited by each website visitor.

    It sometimes doesn’t show any related posts under any blog post, but there is a reason why it acts up that way.

    (more…)
  • Error while updating your WordPress Installations Automatically or Getting error while uploading file to WordPress blog “Failed to write file to disk.”, Here is a solution for this errors.

    If you are getting an error while uploading a file or image to your WordPress blog or when automatically updating your WordPress installation, then here is the solution for the same.

    All errors are related to something like this:

    Error 01:

    Error while uploading file, image to WordPress blog “Failed to write file to disk.”

    Error 02:

    Automatic update Failed for WordPress 3.8.2

    OR

    Warning: touch() [function.touch]: Unable to create file ~/root-directory/tmp/wordpress-3.tmp because No such file or directory in /nfs/ccc/hhh/ttt/12345/domains/your-domain-name.com/html/wp-admin/includes/file.php on line 155

    Warning: unlink(~/root-directory/tmp/wordpress-3.tmp) [function.unlink]: No such file or directory in /nfs/ccc/hhh/ttt/12345/domains/your-domain-name.com/html/wp-admin/includes/file.php on line 479
    Download failed.: Destination directory for file streaming does not exist or is not writable.

    Here is the Reason & Solution to the problem:

    (more…)
  • Checking the ‘.plist’ file for errors and bugs. This post will help you when you want to add or edit data inside the .plist file, which gives an error message: ‘The data couldn’t be read because it isn’t in the correct format.’

    Terminal

    Suppose you are from the iOS Design and development community. In that case, you may already be familiar with using Apple’s list, i.e. Property List file functionality, whereby you store your data in an XML file type (Apple’s list file format).

    Adding 1,000 lines of code in the list file is painful, so what you do is copy and paste through the source tab.

    But if you have done something wrong with the structure of the .plist file, you will get an error something like this

    plist error in xcode ios app development

    ERROR: ‘The data couldn’t be read because it isn’t in the correct format.’

    (more…)
  • How to Fix ‘Warning: require_once() [function.require-once]: Unable to allocate memory for pool.’ Warning thrown at you while you were trying to login in your WordPress admin page.

    Today, I was trying to log in to my website’s Admin page, but I was stopped by following a warning from WordPress’s

    Unable to allocate memory for pool
    

    The full warning summary was something like this:

    Warning: require_once() [function.require-once]: Unable to allocate memory for pool. in /nnn/000/000/mnt/111111/domains/domainname.com/html/wp-includes/pluggable.php on line 1547
    
    Warning: Cannot modify header information - headers already sent by (output started at /nnn/000/000/mnt/111111/domains/domainname.com/html/wp-includes/pluggable.php:1547) in /nnn/000/000/mnt/111111/domains/domainname.com/html/wp-includes/pluggable.php on line 678
    
    Warning: Cannot modify header information - headers already sent by (output started at /nnn/000/000/mnt/111111/domains/domainname.com/html/wp-includes/pluggable.php:1547) in /nnn/000/000/mnt/111111/domains/domainname.com/html/wp-includes/pluggable.php on line 679
    
    Warning: Cannot modify header information - headers already sent by (output started at /nnn/000/000/mnt/111111/domains/domainname.com/html/wp-includes/pluggable.php:1547) in /nnn/000/000/mnt/111111/domains/domainname.com/html/wp-includes/pluggable.php on line 680
    
    Warning: Cannot modify header information - headers already sent by (output started at /nnn/000/000/mnt/111111/domains/domainname.com/html/wp-includes/pluggable.php:1547) in /nnn/000/000/mnt/111111/domains/domainname.com/html/wp-includes/pluggable.php on line 896
    
    (more…)
  • WordPress (WP) Custom Designed Login Logo gets truncated or cropped after WordPress is updated to 3.8+

    Background:

    It seems the custom-designed logo of the login form gets cropped or truncated if you update your WordPress installation to 3.8 or later.

    Just for background & history of the WordPress login form, the logo was something rectangular in shape, as shown below:

    Orginal WordPress Login Logo

    My custom design of my Studio’s logo was the right fit & was working fine, as shown below:

    WordPress Custom Login Logo Fix - Correct Custom Logo after code update
    (more…)
  • Automating WordPress Website Maintenance.

    Assumptions, Prerequisites & Basic Knowledge
    I assume you have decent web design and development knowledge, including HTML and CSS for Ice on Cake, and a working knowledge of PHP. I believe you have deployed your WordPress website on an online live server.

    Introduction to Automated WordPress Maintenance
    This tutorial & my blog post will help you to automate your workflow of updating 100s of WordPress websites without any extra effort. Even when you are sleeping or working on your next big project, your website will do all the work without any from your side. All scripts listed below will help you automate updating WordPress Major & Minor Core Source Code, Themes, Plugins, Database, WordPress site-wide trash cleanup & SPAM Comments removal.

    First Step:
    Towards Automated WordPress Source Code / Core update inclusion of official major & minor releases.

    WordPress.org introduced Automatic Minor Core updates in 3.7. These features remove hassle & extra steps from updating the website to the next dot release of WordPress Website Installation.

    (more…)