Discuss [questions] SegmentedControl, NSString, Right button at the Free Toolchain Software (Cydia App's) - Hackint0sh.org; I am using toolchain to develop an application, but currently I've hit some obstacles. I ...
[questions] SegmentedControl, NSString, Right button
I am using toolchain to develop an application, but currently I've hit some obstacles. I have several questions and hope you guys can give me some pointers:
1) How to determine if the user has selected a segment in a UISegmentedControl? The selectedSegment method will give segmentation fault at run time if I don't select any segment, and apparently there is not an isSelected method or something similar in the UISegmentedControl.h
2) I want to make sure that my string only contains digits and alphabets. For now my only solution is to do a "find string within string" operation for all special characters I can think of, but it surely is not the most elegant solution out there. Anyone has a better idea? Is there a way to disable special characters in the keyboard, or to trim them all off my string?
3) How to make the rightButton beside a UITextField to appear? I can make the clear button to appear by calling setClearButtonStyle, but setRightButtonStyle doesn't work, and setRightButton doesn't seem to exist.
By snow_boy in forum iPhone 3G
Last Post: 04-09-2010, 09:13 PM
By DJA in forum Installation
Last Post: 03-18-2010, 02:54 AM
By matten in forum iPhone "2G" (Rev. 1)
Last Post: 01-14-2008, 01:26 PM