概述
ios中通过调试来使用私有ipa
#import #import "NSCoding.h" #import "UIPopoverControllerDelegate.h" #import "UITextInput.h" @class NSArray, NSAttributedString, NSDictionary, NSString, UIButton, UIColor, UIFont, UIImage, UIImageView, UILabel, UITextFieldAtomBackgroun dView, UITextFieldBackgroundVie w, UITextFieldBorderView, UITextFieldLabel, UITextInputTraits, UITextInteractionAssista nt, UITextPosition, UITextRange, UIView, _UIBaselineLayoutStrut, _UITextServiceSession; @interface UITextField : UIControl { NSAttributedString *_text; UIColor *_textColor; int _borderStyle; float _minimumFontSize; id _delegate; UIImage *_background; UIImage *_disabledBackground; int _clearButtonMode; UIView *_leftView; int _leftViewMode; UIView *_rightView; int _rightViewMode; UITextInputTraits *_traits; UITextInputTraits *_nonAtomTraits; float _fullFontSize; float _paddingLeft; float _paddingTop; float _paddingRight; float _paddingBottom; NSString *_textFont; struct _NSRange _selectionRange; int _scrollXOffset; int _scrollYOffset; float _progress; NSString *_style; UIButton *_clearButton; struct CGSize _clearButtonOffset; struct CGSize _leftViewOffset; struct CGSize _rightViewOffset; UITextFieldBorderView *_backgroundView; UITextFieldBorderView *_disabledBackgroundView; UITextFieldBackgroundVie w *_systemBackgroundView; UITextFieldLabel *_textLabel; UITextFieldLabel *_placeholderLabel; UITextFieldLabel *_suffixLabel; UITextFieldLabel *_prefixLabel; UIImageView *_iconView; UILabel *_label; float _labelOffset; UITextInteractionAssista nt *_interactionAssistant; UIView *_inputView; UIView *_inputAccessoryView; UITextFieldAtomBackgroun dView *_atomBackgroundView; UIColor *_shadowColor; struct CGSize _shadowOffset; float _shadowBlur; struct { unsigned int secureTextChanged:1; unsigned int guard:1; unsigned int delegateRespondsToHandle KeyDown:1; unsigned int verticallyCenterText:1; unsigned int isAnimating:4; unsigned int inactiveHasDimAppearance :1; unsigned int becomesFirstResponderOnC learButtonTap:1; unsigned int clearsOnBeginEditing:1; unsigned int clearsPlaceholderOnBegin Editing:1; unsigned int adjustsFontSizeToFitWidt h:1; unsigned int fieldEditorAttached:1; unsigned int canBecomeFirstResponder:1; unsigned int shouldSuppressShouldBegi nEditing:1; unsigned int inResignFirstResponder:1; unsigned int undoDisabled:1; unsigned int contentsRTL:1; unsigned int explicitAlignment:1; unsigned int implementsCustomDrawing:1; unsigned int needsClearing:1; unsigned int suppressContentChangedNo tification:1; unsigned int allowsEditingTextAttribu tes:1; unsigned int usesAttributedText:1; unsigned int backgroundViewState:2; unsigned int clearsOnInsertion:1; } _textFieldFlags; _UITextServiceSession *_definitionSession; _UITextServiceSession *_learnSession; BOOL _deferringBecomeFirstResp onder; BOOL _avoidBecomeFirstResponde r; BOOL _setSelectionRangeAfterFi eldEditorIsAttached; NSArray *_baselineLayoutConstraint s; _UIBaselineLayoutStrut *_baselineLayoutLabel; } @property(retain) UIView *inputView; // @synthesize inputView=_inputView; @property(nonatomic) int rightViewMode; // @synthesize rightViewMode=_rightViewMode; @property(retain, nonatomic) UIView *rightView; // @synthesize rightView=_rightView; @property(nonatomic) int leftViewMode; // @synthesize leftViewMode=_leftViewMode; @property(retain, nonatomic) UIView *leftView; // @synthesize leftView=_leftView; @property(nonatomic) int clearButtonMode; // @synthesize clearButtonMode=_clearButtonMode; @property(retain, nonatomic) UIImage *disabledBackground; // @synthesize disabledBackground=_disabledBackground; @property(retain, nonatomic) UIImage *background; // @synthesize background=_background; @property(nonatomic) id delegate; // @synthesize delegate=_delegate; @property(nonatomic) float minimumFontSize; // @synthesize minimumFontSize=_minimumFontSize; @property(nonatomic) int borderStyle; // @synthesize borderStyle=_borderStyle; @property(retain, nonatomic, setter=_setBaselineLayoutLabel:) _UIBaselineLayoutStrut *_baselineLayoutLabel; // @synthesize _baselineLayoutLabel; @property(copy, nonatomic, setter=_setBaselineLayoutConstra ints:) NSArray *_baselineLayoutConstraint s; // @synthesize _baselineLayoutConstraint s; - (void)setSelectionGranularity:(int)arg1; - (int)selectionGranularity; - (id)_findWebViewWordBoundaryF romPosition:(id)arg1; @property(nonatomic) int selectionAffinity; - (id)characterRangeAtPoint:(struct CGPoint)arg1; - (id)closestPositionToPoint:(struct CGPoint)arg1 withinRange:(id)arg2; - (id)closestPositionToPoint:(struct CGPoint)arg1; - (struct CGRect)caretRectForPosition:(id)arg1; - (struct CGRect)firstRectForRange:(id)arg1; - (void)setBaseWritingDirection:(int)arg1 forRange:(id)arg2; - (int)baseWritingDirectionForP osition:(id)arg1 inDirection:(int)arg2; - (id)characterRangeByExtendin gPosition:(id)arg1 inDirection:(int)arg2; - (id)positionWithinRange:(id)arg1 farthestInDirection:(int)arg2; @property(readonly, nonatomic) id tokenizer; @property(nonatomic) id inputDelegate; - (int)offsetFromPosition:(id)arg1 toPosition:(id)arg2; - (int)comparePosition:(id)arg1 toPosition:(id)arg2; - (id)positionFromPosition:(id)arg1 inDirection:(int)arg2 offset:(int)arg3; - (id)positionFromPosition:(id)arg1 offset:(int)arg2; - (id)textRangeFromPosition:(id)arg1 toPosition:(id)arg2; @property(readonly, nonatomic) UITextPosition *endOfDocument; @property(readonly, nonatomic) UITextPosition *beginningOfDocument; - (void)unmarkText; - (void)setMarkedText:(id)arg1 selectedRange:(struct _NSRange)arg2; @property(copy, nonatomic) NSDictionary *markedTextStyle; @property(readonly, nonatomic) UITextRange *markedTextRange; @property(copy) UITextRange *selectedTextRange; - (void)replaceRange:(id)arg1 withText:(id)arg2; - (id)textInRange:(id)arg1; - (BOOL)hasText; - (id)metadataDictionariesForD ictationResults; - (struct CGRect)frameForDictationResultP laceholder:(id)arg1; - (void)removeDictationResultPla ceholder:(id)arg1 willInsertResult:(BOOL)arg2; - (id)insertDictationResultPla ceholder; - (void)insertDictationResult:(id)arg1 withCorrectionIdentifier :(id)arg2; - (void)insertText:(id)arg1; - (void)deleteBackward; - (id)_proxyTextInput; - (BOOL)canPerformAction:(SEL)arg1 withSender:(id)arg2; - (BOOL)inPopover; - (void)_promptForReplace:(id)arg1; - (void)replace:(id)arg1; - (void)_showTextStyleOptions:(id)arg1; - (void)toggleUnderline:(id)arg1; - (void)toggleItalics:(id)arg1; - (void)toggleBoldface:(id)arg1; - (void)makeTextWritingDirection LeftToRight:(id)arg1; - (void)makeTextWritingDirection RightToLeft:(id)arg1; - (void)selectAll:(id)arg1; - (void)select:(id)arg1; - (void)paste:(id)arg1; - (void)_addShortcut:(id)arg1; - (void)_selectionMayChange:(id)arg1; - (BOOL)_isDisplayingReferenceLib raryViewController; - (void)_define:(id)arg1; - (void)copy:(id)arg1; - (void)cut:(id)arg1; - (id)webView; - (struct CGPoint)constrainedPoint:(struct CGPoint)arg1; - (unsigned int)offsetInMarkedTextForSel ection:(id)arg1; - (struct CGRect)closestCaretRectInMarked TextRangeForPoint:(struct CGPoint)arg1; - (id)selectedAttributedText; - (id)selectedText; - (id)selectionRectsForRange:(id)arg1; - (struct CGRect)_selectionClipRect; - (id)interactionAssistant; - (id)selectionView; - (void)cancelAutoscroll; - (void)startAutoscroll:(struct CGPoint)arg1; - (BOOL)hasSelection; - (id)_fieldEditor; - (void)endSelectionChange; - (void)beginSelectionChange; - (BOOL)isEditable; - (id)undoManager; - (int)atomStyle; - (void)setAtomStyle:(int)arg1; - (BOOL)drawsAsAtom; - (void)setDrawsAsAtom:(BOOL)arg1; - (void)setClearButtonOffset:(struct CGSize)arg1; - (void)_clearButtonClicked:(id)arg1; - (BOOL)isUndoEnabled; - (void)setUndoEnabled:(BOOL)arg1; - (void)setTextCentersVertically :(BOOL)arg1; - (void)setTextCentersHorizontal ly:(BOOL)arg1; - (void)setLabel:(id)arg1; - (id)textLabel; - (void)setLabelOffset:(float)arg1; - (BOOL)hasMarkedText; - (void)setProgress:(float)arg1; - (struct CGRect)iconRect; - (void)setBecomesFirstResponder OnClearButtonTap:(BOOL)arg1; - (struct CGSize)clearButtonOffset; - (void)setIcon:(id)arg1; - (unsigned int)characterOffsetAtPoint:(struct CGPoint)arg1; - (void)setSelectionRange:(struct _NSRange)arg1; - (struct _NSRange)selectionRange; - (void)clearText; - (void)layoutTilesNow; - (void)_resetSelectionUI; - (void)_clearSelectionUI; - (void)selectAll; - (void)setEnabled:(BOOL)arg1; - (void)_setEnabled:(BOOL)arg1 animated:(BOOL)arg2; - (void)setInactiveHasDimAppeara nce:(BOOL)arg1; - (void)setTextFont:(id)arg1; - (float)paddingRight; - (void)setPaddingRight:(float)arg1; - (float)paddingBottom; - (void)setPaddingBottom:(float)arg1; - (float)paddingTop; - (void)setPaddingTop:(float)arg1; - (float)paddingLeft; - (void)setPaddingLeft:(float)arg1; - (void)setPaddingTop:(float)arg1 paddingLeft:(float)arg2; - (void)drawBorder:(struct CGRect)arg1; - (void)drawRect:(struct CGRect)arg1; - (BOOL)_canDrawContent; - (BOOL)_implementsCustomDrawing; - (struct CGRect)editRect; - (struct CGRect)textRect; - (struct CGRect)clearButtonRect; - (void)setClearButtonStyle:(int)arg1; - (void)setTextAutorresizesToFit :(BOOL)arg1; - (void)setAutoresizesTextToFit:(BOOL)arg1; - (id)documentFragmentForPaste boardItemAtIndex:(int)arg1; - (id)_dictationInterpretations ; - (id)supportedPasteboardTypes ForCurrentSelection; - (BOOL)fieldEditor:(id)arg1 shouldReplaceWithText:(id)arg2; - (BOOL)fieldEditor:(id)arg1 shouldInsertText:(id)arg2 replacingRange:(struct _NSRange)arg3; - (void)fieldEditorDidChangeSele ction:(id)arg1; - (struct _NSRange)fieldEditor:(id)arg1 willChangeSelectionFromC haracterRange:(struct _NSRange)arg2 toCharacterRange:(struct _NSRange)arg3; - (void)selectAllFromFieldEditor :(id)arg1; - (void)fieldEditorDidChange:(id)arg1; - (id)customOverlayContainer; - (void)keyboardInputChangedSele ction:(id)arg1; - (BOOL)keyboardInputChanged:(id)arg1; - (BOOL)keyboardInputShouldDelet e:(id)arg1; - (BOOL)keyboardInput:(id)arg1 shouldReplaceTextInRange :(struct _NSRange)arg2 replacementText:(id)arg3; - (BOOL)keyboardInput:(id)arg1 shouldInsertText:(id)arg2 isMarkedText:(BOOL)arg3; - (void)_applicationResuming:(id)arg1; - (void)willDetachFieldEditor:(id)arg1; - (void)attachFieldEditor:(id)arg1; - (void)willAttachFieldEditor:(id)arg1; - (void)_drawTextInRect:(struct CGRect)arg1 forLabel:(id)arg2; - (void)drawPrefixInRect:(struct CGRect)arg1; - (void)drawSuffixInRect:(struct CGRect)arg1; - (void)drawPlaceholderInRect:(struct CGRect)arg1; - (void)drawTextInRect:(struct CGRect)arg1; - (struct CGRect)rightViewRectForBounds:(struct CGRect)arg1; - (struct CGRect)leftViewRectForBounds:(struct CGRect)arg1; - (struct CGRect)_baselineLeftViewRectForB ounds:(struct CGRect)arg1; - (struct CGRect)clearButtonRectForBounds :(struct CGRect)arg1; - (struct CGRect)editingRectForBounds:(struct CGRect)arg1; - (struct CGRect)placeholderRectForBounds :(struct CGRect)arg1; - (struct CGRect)textRectForBounds:(struct CGRect)arg1; - (struct CGRect)borderRectForBounds:(struct CGRect)arg1; @property(retain) UIView *inputAccessoryView; @property(readonly, nonatomic, getter=isEditing) BOOL editing; - (id)backgroundColor; - (void)setBackgroundColor:(id)arg1; @property(copy, nonatomic) NSDictionary *typingAttributes; @property(nonatomic) BOOL allowsEditingTextAttribu tes; @property(nonatomic) BOOL adjustsFontSizeToFitWidt h; - (void)setClearsPlaceholderOnBe ginEditing:(BOOL)arg1; - (BOOL)clearsPlaceholderOnBegin Editing; @property(nonatomic) BOOL clearsOnBeginEditing; - (void)_setPrefix:(id)arg1; - (void)_setSuffix:(id)arg1 withColor:(id)arg2; @property(copy, nonatomic) NSAttributedString *attributedPlaceholder; @property(copy, nonatomic) NSString *placeholder; - (void)createPlaceholderIfNeces sary; - (void)finishedSettingPlacehold er; - (id)createTextLabelWithTextC olor:(id)arg1; - (void)_createBaselineLayoutLabe lIfNecessary; - (id)createPlaceholderLabelWi thFont:(id)arg1 andTextAlignment:(int)arg2; - (void)setContentVerticalAlignm ent:(int)arg1; @property(nonatomic) int textAlignment; @property(retain, nonatomic) UIFont *font; - (void)disableClearsOnInsertion ; @property(nonatomic) BOOL clearsOnInsertion; - (float)shadowBlur; - (void)setShadowBlur:(float)arg1; - (struct CGSize)shadowOffset; - (void)setShadowOffset:(struct CGSize)arg1; - (id)shadowColor; - (void)setShadowColor:(id)arg1; @property(retain, nonatomic) UIColor *textColor; - (void)_updateTextColor; @property(copy, nonatomic) NSAttributedString *attributedText; - (void)_setAttributedText:(id)arg1 onFieldEditorAndSetCaret SelectionAfterText:(BOOL)arg2; - (void)_transferTextFieldPropert iesFromText:(id)arg1; - (void)_transferAttribute:(id)arg1 fromString:(id)arg2 andSetPropertyWith:(SEL)arg3 usingValueClass:(Class)arg4; @property(copy, nonatomic) NSString *text; - (void)finishedSettingTextOrAtt ributedText; - (id)searchText; - (BOOL)_hasContent; - (id)_attributedText; - (id)_text; @property(nonatomic, getter=isSecureTextEntry) BOOL secureTextEntry; // @dynamic secureTextEntry; - (void)_updateTextLabel; - (BOOL)respondsToSelector:(SEL)arg1; - (id)methodSignatureForSelect or:(SEL)arg1; - (void)forwardInvocation:(id)arg1; - (id)textInputTraits; - (BOOL)_shouldSendContentChanged NotificationsIfOnlyMarke dTextChanged; - (id)_textLabelView; - (id)_placeholderLabel; - (id)_placeholderView; - (id)_placeholderColor; - (void)_setSystemBackgroundViewA ctive:(BOOL)arg1; - (BOOL)_fieldEditorAttached; - (Class)_systemBackgroundViewClas s; - (void)_setRightViewOffset:(struct CGSize)arg1; - (struct CGSize)_rightViewOffset; - (void)_setLeftViewOffset:(struct CGSize)arg1; - (struct CGSize)_leftViewOffset; - (struct CGPoint)_scrollOffset; - (id)actualFont; - (float)actualMinimumFontSize; - (struct CGRect)adjustedCaretRectForCare tRect:(struct CGRect)arg1; - (void)_updateRTLStateForText:(id)arg1 updateAlignment:(BOOL)arg2; - (void)_setImplicitAlignment; - (void)_clearBackgroundViews; - (void)_updateBackgroundViewsAni mated:(BOOL)arg1; - (BOOL)_shouldEndEditing; - (void)layoutSubviews; - (struct CGRect)_prefixFrame; - (struct CGRect)_suffixFrame; - (void)updateConstraints; - (void)_setUpBaselineLayoutConst raints; - (struct CGRect)_frameForLabel:(id)arg1 inTextRect:(struct CGRect)arg2; - (void)_updateLabel; - (struct CGRect)_textRectExcludingButtons ForBounds:(struct CGRect)arg1; - (struct CGRect)_textRectForBounds:(struct CGRect)arg1 forEditing:(BOOL)arg2; - (BOOL)_isShowingPrefix; - (BOOL)_isShowingPlaceholder; - (BOOL)_showsRightView; - (BOOL)_showsLeftView; - (BOOL)_showsClearButtonWhenEmpt y; - (BOOL)_showsClearButton:(BOOL)arg1; - (BOOL)_showsClearButtonWhenNonE mpty:(BOOL)arg1; - (void)_updateAtomBackground; - (BOOL)_showsAtomBackground; - (BOOL)_partsShouldBeMini; - (BOOL)_heightShouldBeMini; - (struct CGRect)_atomBackgroundViewFrame; - (void)_updateAutosizeStyleIfNee ded; - (void)_updateButtons; - (id)_clearButton; - (id)clearButton; - (id)_clearButtonImageForState :(unsigned int)arg1; - (void)_endedEditing; - (id)_style; - (id)_createCSSStyleDeclaratio nForWebView:(id)arg1; - (float)_marginTop; - (id)_copyFont:(id)arg1 newSize:(float)arg2 maxSize:(float)arg3; - (void)setFont:(id)arg1 fullFontSize:(float)arg2; - (id)hitTest:(struct CGPoint)arg1 withEvent:(id)arg2; - (void)touchesEnded:(id)arg1 withEvent:(id)arg2; - (void)touchesCancelled:(id)arg1 withEvent:(id)arg2; - (void)_resignFirstResponder; - (void)_windowBecameKey; - (BOOL)resignFirstResponder; - (void)_removeShortcutController ; - (void)_removeDefinitionControll er; - (void)_becomeFirstResponder; - (void)_updatePlaceholderPositio n; - (int)_currentTextAlignment; - (void)__resumeBecomeFirstRespond er; - (void)_becomeFirstResponderAndM akeVisible; - (BOOL)_requiresKeyboardResetOnR eload; - (id)_keyboardResponder; - (BOOL)canResignFirstResponder; - (BOOL)canBecomeFirstResponder; - (struct CGSize)sizeThatFits:(struct CGSize)arg1; - (struct CGSize)_intrinsicSizeWithinSize:(struct CGSize)arg1; - (id)viewForBaselineLayout; - (struct CGSize)_textSize; - (struct CGSize)_textSizeUsingFullFontSiz e:(BOOL)arg1; - (void)setAnimating:(BOOL)arg1; - (void)setBounds:(struct CGRect)arg1; - (void)setFrame:(struct CGRect)arg1; - (void)_sizeChanged:(BOOL)arg1; - (void)_setNeedsStyleRecalc; - (void)_clearStyle; - (void)dealloc; - (void)_encodeBackgroundColorWit hCoder:(id)arg1; - (void)encodeWithCoder:(id)arg1; - (void)_populateArchivedSubviews :(id)arg1; - (id)initWithCoder:(id)arg1; - (id)initWithFrame:(struct CGRect)arg1; - (void)_invalidateBaselineLayout Constraints; - (id)_scriptingInfo; - (void)decodeRestorableStateWit hCoder:(id)arg1; - (void)encodeRestorableStateWit hCoder:(id)arg1; - (BOOL)isElementAccessibilityEx posedToInterfaceBuilder; - (BOOL)isAccessibilityElementBy Default; // Remaining properties @property(nonatomic) int autocapitalizationType; // @dynamic autocapitalizationType; @property(nonatomic) int autocorrectionType; // @dynamic autocorrectionType; @property(nonatomic) BOOL enablesReturnKeyAutomati cally; // @dynamic enablesReturnKeyAutomati cally; @property(nonatomic) int keyboardAppearance; // @dynamic keyboardAppearance; @property(nonatomic) int keyboardType; // @dynamic keyboardType; @property(nonatomic) int returnKeyType; // @dynamic returnKeyType; @property(nonatomic) int spellCheckingType; // @dynamic spellCheckingType; @property(readonly, nonatomic) UIView *textInputView; @end
首先我们看它声明的方法,关于cursor 的函数,或者表示类似颜色设置的函数,一看之下,没有。这个时候我们注意到有一个函数是
字面意思上是文本输入特征的意思,这个很有可能是我们需要的设置光标的颜色,ok,现在我们开始写代码。
省略创建project的步骤,直接上代码
我们看到private 下面,有一行是标识color的,很可能这个就是我们找的光标样色的属性。同样我们看一下 UITextfieldTraits的头文件,找到我们需要调用的函数。
#import "NSObject.h" #import "NSCopying.h" #import "UITextInputTraits.h" #import "UITextInputTraits_Private.h" @class UIColor, UIImage; @interface UITextInputTraits : NSObject { int autocapitalizationType; int autocorrectionType; int spellCheckingType; unsigned int keyboardType:8; unsigned int keyboardAppearance:8; int returnKeyType; BOOL enablesReturnKeyAutomatically; BOOL secureTextEntry; struct __CFCharacterSet *textTrimmingSet; UIColor *insertionPointColor; UIColor *selectionBarColor; UIColor *selectionHighlightColor; UIImage *selectionDragDotImage; unsigned int insertionPointWidth; int textLoupeVisibility; int textSelectionBehavior; id textSuggestionDelegate; BOOL contentsIsSingleValue; BOOL acceptsEmoji; BOOL returnKeyGoesToNextRespo nder; BOOL acceptsFloatingKeyboard; BOOL acceptsSplitKeyboard; BOOL displaySecureTextUsingPl ainText; BOOL learnsCorrections; int emptyContentReturnKeyTyp e; int shortcutConversionType; BOOL suppressReturnKeyStyling ; BOOL forceEnableDictation; BOOL useInterfaceLanguageForL ocalization; BOOL deferBecomingResponder; } + (BOOL)keyboardTypeRequiresASCI ICapable:(int)arg1; + (id)traitsByAdoptingTraits:(id)arg1; + (id)defaultTextInputTraits; @property(nonatomic) BOOL deferBecomingResponder; // @synthesize deferBecomingResponder; @property(nonatomic) BOOL useInterfaceLanguageForL ocalization; // @synthesize useInterfaceLanguageForL ocalization; @property(nonatomic) BOOL forceEnableDictation; // @synthesize forceEnableDictation; @property(nonatomic) BOOL suppressReturnKeyStyling ; // @synthesize suppressReturnKeyStyling ; @property(nonatomic) int shortcutConversionType; // @synthesize shortcutConversionType; @property(nonatomic) BOOL learnsCorrections; // @synthesize learnsCorrections; @property(nonatomic) BOOL displaySecureTextUsingPl ainText; // @synthesize displaySecureTextUsingPl ainText; @property(nonatomic) BOOL acceptsSplitKeyboard; // @synthesize acceptsSplitKeyboard; @property(nonatomic) BOOL acceptsFloatingKeyboard; // @synthesize acceptsFloatingKeyboard; @property(nonatomic) BOOL returnKeyGoesToNextRespo nder; // @synthesize returnKeyGoesToNextRespo nder; @property(nonatomic) int emptyContentReturnKeyTyp e; // @synthesize emptyContentReturnKeyTyp e; @property(nonatomic) BOOL acceptsEmoji; // @synthesize acceptsEmoji; @property(nonatomic) BOOL contentsIsSingleValue; // @synthesize contentsIsSingleValue; @property(nonatomic) int textSelectionBehavior; // @synthesize textSelectionBehavior; @property(nonatomic) int textLoupeVisibility; // @synthesize textLoupeVisibility; @property(nonatomic) unsigned int insertionPointWidth; // @synthesize insertionPointWidth; @property(retain, nonatomic) UIImage *selectionDragDotImage; // @synthesize selectionDragDotImage; @property(retain, nonatomic) UIColor *selectionHighlightColor; // @synthesize selectionHighlightColor; @property(retain, nonatomic) UIColor *selectionBarColor; // @synthesize selectionBarColor; @property(retain, nonatomic) UIColor *insertionPointColor; // @synthesize insertionPointColor; @property(nonatomic, getter=isSecureTextEntry) BOOL secureTextEntry; // @synthesize secureTextEntry; @property(nonatomic) BOOL enablesReturnKeyAutomati cally; // @synthesize enablesReturnKeyAutomati cally; @property(nonatomic) int returnKeyType; // @synthesize returnKeyType; @property(nonatomic) int keyboardAppearance; // @synthesize keyboardAppearance; @property(nonatomic) int keyboardType; // @synthesize keyboardType; @property(nonatomic) int spellCheckingType; // @synthesize spellCheckingType; @property(nonatomic) int autocorrectionType; // @synthesize autocorrectionType; @property(nonatomic) int autocapitalizationType; // @synthesize autocapitalizationType; - (BOOL)isEqual:(id)arg1; - (id)description; - (id)copyWithZone:(struct _NSZone *)arg1; - (void)takeTraitsFrom:(id)arg1; - (void)setToDefaultValues; - (void)dealloc; - (id)init; @property(nonatomic) id textSuggestionDelegate; // @dynamic textSuggestionDelegate; @property(nonatomic) struct __CFCharacterSet *textTrimmingSet; // @dynamic textTrimmingSet; - (id)dictionaryRepresentation ; - (void)setToSecureValues; @end
我们找到一个property :
经过尝试果然如此,现在贴上结果
各位看官,这次的关于私有api的分析就结束了,其实整个过程没这么顺利,只是我省掉了一些,本身这个做法我也没有用到项目中,而是选择一个开源的项目,但是对于私有ipa的熟悉也体现一个程序员对于apple这套东西的熟悉,同时我们可以模仿私有的实现,做一些事情,但是不推荐大家直接使用私有ipa。
最后
以上就是忧郁摩托为你收集整理的ios中经过调试来使用私有ipa的全部内容,希望文章能够帮你解决ios中经过调试来使用私有ipa所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复