Get Updates By E-mail 

uitextview

Best Resources In iOS Development – July 10th 2011

  •  
  •  
  •  
  •  
  •  

Another great week has gone by, and if you are a regular visitor to this site you have probably noticed that I am now using a new theme.  Hopefully this betters the user experience for everyone.

In the last week there were some great resources shared, those included a number of open source libraries relating to topics such as Core Text, web services, data storage, and user interface improvements.

Here are the most viewed resources that were new in the last week listed in order of popularity:

Open Source: Lightweight Asynchronous Networking Library For Easy Communication With Web Services – A great lightweight library for communicating with web services allowing you to code complex interactions quickly by taking advantage of Objective-C blocks.

Tutorial: Custom In View Popup Windows – A guide and library for creating popup windows within your main view so that you can display content without needing to navigate to another view.

Open Source: Rich Text-Editing View Using Core Text – A drop in UITextView replacement that allows for easily creating and editing richly formatted text.

Open Source: Library For Easy Data Saving/Loading – A straightforward data saving library allowing you to save or load int, float, and NSString data with just one line of code.

Open Source: UITableView Replacement With Swipeable Cells – A slick UITableView replacement that allows you to create table view cells that can be swiped by the user revealing new content behind the cell.

Open Source: Library Allowing For Tab Bars With An Infinite Number Of Items – A tab bar library that allows you to place an unlimited number of items and allowing the user to scroll between different tab bars accessing the icons without the user having to use the more screen.

Tutorial: Format Text Magazine Style Using Core Text – A great step-by-step tutorial on how to format your text in multiple columns, and format the text with different styles using Core Text.  Excellent for anyone developing a magazine style app.

Open Source: Easily Extensible Objective-C Math Parser Library – A very useful math parsing library that uses similar syntax to NSPredicate but allows you to very easily add new functions.

Open Source: Library And Guide For NinePatch Image Support On iOS Platforms – A libary for support of NinePatch format images that are commonly used for interface elements on Android.

Thanks for reading, please share and bookmark this post!


  •  
  •  
  •  
  •  
  •  

4 Ridiculously Handy Custom iPhone UI Tricks and Libraries

  •  
  •  
  •  
  •  
  •  

The iPhone has a great UI library, but there are still times when you think to yourself when programming — why didn’t they include this feature?

Whenever that thought pops into my head (probably because I’m an efficiency freak who likes to do things in the least possible time) and I can’t easily find the answer in Apple’s documentation I look to see if someone has done it before, and shared their results.

Hans Pinckaers, an 18 year old developer from the Netherlands submitted in a collection of several tips and custom UI classes that he has put together.

They include:

1. A multiline/auto-resizing UITextView element which operates similar to the SMS app. (here)

2. How to perform a custom action when the user presses a UIBackButton. (here)

3. A High performance rounded corner UITableView implementation. (here)

4. How to create a copyable UITableViewCell. (here)

Btw, if you’ve seen a good iOS tip feel free to submit it, or a link to it here and if I think the readers will like it I’ll feature it on the site in front of our 2,000+ daily visitors.


  •  
  •  
  •  
  •  
  •  

Custom Behavior On Return For A UITextView

  •  
  •  
  •  
  •  
  •  

The default behavior for a UITextField on pressing the return key is to execute the textFieldShouldReturn: method of the UITextFieldDelegate.

What if we wanted to create similar behavior with a a UITextView which does not have an equivalent method and by default just creates a new line?

Nick Dalton has come up with a snippet of code that uses the:

textView:shouldChangeTextInRange:replacementText:

method of the UITextViewDelegate to do just that.

You can check the article out here: Handling The Return Key In A UITextView

It’s a very handy bit of code to have as there are many situations where you may want to implement custom behavior when the return key is pressed in a UITextView.

Thanks Nick.

Please post any comments below, thanks.


  •  
  •  
  •  
  •  
  •