Re: How to get a Normal button in iOS 7/IB

2013-10-03 Thread Esteban Torres
Just create a UIButton that's custom; set the background color and the layer's 
corner radius, borderWidth and borderColor properties to something like 5.0f, 
1.5f and [[UIColor blackColor] CGColor] and that should look pretty similar to 
the old regular buttons 

--
Esteban Torres
(+506)8813-0934
Skype: esteban.a.torres.hernandez


On Thursday, October 3, 2013 at 1:09 PM, Dave wrote:

 
 On 3 Oct 2013, at 20:05, David Duncan david.dun...@apple.com 
 (mailto:david.dun...@apple.com) wrote:
 
  On Oct 3, 2013, at 11:56 AM, Dave d...@looktowindward.com 
  (mailto:d...@looktowindward.com) wrote:
  
   I want to create a button (UIButton) that actually looks like a button, 
   e.g. with a border round, as in iOS 7 is iOS 7, preferably with IB but 
   in code otherwise. Which properties do I need to tweak in order to get 
   this?
  
  
  You can create any button look you want with a custom button and the right 
  image assets.
 
 Sorry, should have said, without using an Image.
 
 Cheers
 Dave
 
 
 
 ___
 
 Cocoa-dev mailing list (Cocoa-dev@lists.apple.com 
 (mailto:Cocoa-dev@lists.apple.com))
 
 Please do not post admin requests or moderator comments to the list.
 Contact the moderators at cocoa-dev-admins(at)lists.apple.com 
 (http://lists.apple.com)
 
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/cocoa-dev/me%40estebantorr.es
 
 This email sent to m...@estebantorr.es (mailto:m...@estebantorr.es) 

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Fastest way to replace characters in string

2013-08-21 Thread Esteban Torres
Don't know if this helps you Diederik but from what I've read the parser 
developed by Oliver Drobnik would be a good place to start on implementing your 
own or even using his DTHTMLParser: 
http://www.cocoanetics.com/2013/08/dtfoundation-1-5-2/ 

Regards,
--
Esteban Torres
(+506)8813-0934
Skype: esteban.a.torres.hernandez


On Wednesday, August 21, 2013 at 5:44 PM, Diederik Meijer | Ten Horses wrote:

 Dear list,
 
 I have an iOS app that loads a local html file into a UIWebView.
 
 The content is quite large, about 1MB, it is the full text of a law.
 
 By tapping a button, users can reveal the number of published court rulings 
 for each of the law's articles.
 
 As this data changes frequently, a list that has a court ruling count for 
 each article is downloaded from a web service.
 
 The web service returns the list lightning fast, but in order to get the 
 count number added to each of the 300 articles html h4 header, I am 
 looping through the list and call NSString's 
 stringByReplacingOccurancesOfString:withString: on each item.
 
 There must be a more efficient way to update the html string loaded from the 
 local file, obviously doing more than 300 of these replace actions is slow 
 and inefficient.
 
 Does anybody here know of a better way to handle this?
 
 Many thanks!
 
 diederik
 ___
 
 Cocoa-dev mailing list (Cocoa-dev@lists.apple.com 
 (mailto:Cocoa-dev@lists.apple.com))
 
 Please do not post admin requests or moderator comments to the list.
 Contact the moderators at cocoa-dev-admins(at)lists.apple.com 
 (http://lists.apple.com)
 
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/cocoa-dev/me%40estebantorr.es
 
 This email sent to m...@estebantorr.es (mailto:m...@estebantorr.es) 

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Moving a textField from under keyboard

2013-07-02 Thread Esteban Torres
I wouldn't do the didBeginEditing approach; in case the user for whatever 
reason is using a Bluetooth keyboard, this will launch the scroll up method 
when there's not visible keyboard and will make the app look weird.

Although I know its a farfetched scenario its still possible.
What I usually do is subscribe to  UIKeyboardWillShowNotification

This notification will let you know when a keyboard will be shown onscreen; 
subsequently you should subscribe to its counter part and also add a tap 
gesture recogniser to the view so that you can also dismiss the keyboard by 
resigning the first responder of the UITextfield when the user taps anywhere 
else on the screen.
I add this tap gesture because I believe its a common preconception for the 
user that if they tap anywhere where there's not textfield the keyboard should 
dismiss.

Hope this helps; let me know if you need more details, I have a UIView category 
that handles this behaviour and I could share it with you if you want.

Regards,
--
Esteban Torres
(+506)8813-0934
Skype: esteban.a.torres.hernandez

On Jun 29, 2013, at 12:11 AM, Diederik Meijer | Ten Horses 
diede...@tenhorses.com wrote:

 One way is to animate the UiTextField upwards in the didBeginEditing 
 delegation method and down again in the shouldReturn.
 
 Verstuurd vanaf mijn iPhone
 
 Op 29 jun. 2013 om 00:44 heeft Julius Oklamcak juli...@icodemonks.com het 
 volgende geschreven:
 
 I'm looking for something OR some method that knows how to change (I
 think) the position (I think) of the view containing a UITextField so the
 TextField is visible after a keyboard comes up and covers it.  Then the view
 goes back to normal position once the keyboard is dismissed.
 
 Is there an inspector attribute for that? 
 
 Is this a delegation thing?
 
 Have a read through the Managing the Keyboard section in the Text, Web,
 and Editing Programming Guide for iOS.
 
 http://developer.apple.com/library/ios/#documentation/StringsTextFonts/Conce
 ptual/TextAndWebiPhoneOS/KeyboardManagement/KeyboardManagement.html 
 
 ___
 
 Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
 
 Please do not post admin requests or moderator comments to the list.
 Contact the moderators at cocoa-dev-admins(at)lists.apple.com
 
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/cocoa-dev/diederik%40tenhorses.com
 
 This email sent to diede...@tenhorses.com
 
 ___
 
 Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
 
 Please do not post admin requests or moderator comments to the list.
 Contact the moderators at cocoa-dev-admins(at)lists.apple.com
 
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/cocoa-dev/me%40estebantorr.es
 
 This email sent to m...@estebantorr.es

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com