Tag:Guo Zhihe

  • IOS development selects photos or photos from album

    Time:2020-9-13

    One line of code for image selection // // gzhPhotoManager.h //Picture selection // //Created by Guo Zhihe on May 26, 2020 //All rights reserved // #import #import “ViewController.h” NS_ASSUME_NONNULL_BEGIN @protocol gzhPhotoManagerDelegate; @interface gzhPhotoManager : NSObject +(instancetype)instance; ///Select Picture ///@ param controller current controller ///@ param target agent ///@ param psize select the size of the […]

  • IOS develops a line of code to handle cache calculation and clear cache

    Time:2020-9-12

    Don’t say much, just code // // gzhCache.h // cache // //Created by Guo Zhihe on May 27, 2020 //All rights reserved // #import NS_ASSUME_NONNULL_BEGIN @interface gzhCache : NSObject ///Calculate cache size +(float)filePath; ///Clean up cache +(void)clearCache; @end NS_ASSUME_NONNULL_END // // gzhCache.m // cache // //Created by Guo Zhihe on May 27, 2020 //All rights […]

  • Add novice guide to IOS development

    Time:2020-9-9

    Such requirements often appear in projects The user can click the event response button on the attached page. // // gzhGuideView.h // GuideView // //Created by Guo Zhihe on May 29, 2020 //All rights reserved // #import NS_ASSUME_NONNULL_BEGIN @interface gzhGuideView : UIView -(void) showguide: (uiview *) view; // displays the boot -(void) dismissguide; // remove […]

  • IOS development label text display position (top, middle, bottom)

    Time:2020-9-7

    There is no method to suck the top and bottom in the uilabel of the system (please tell me if there is one, I can’t find it), so I rewrite the label // // gzhVerticalAlignmentLabel.h // VerticalAlignmentLabel // //Created by Guo Zhihe on June 1, 2020 //All rights reserved // #import NS_ASSUME_NONNULL_BEGIN typedef enum VerticalAlignment […]