- 博客(5)
- 收藏
- 关注
原创 实现引导页的两种方式
一、直接用 scrollView#import @interface SRNewFeaturesViewController : UIViewController#pragma mark - Properties/** Whether to hide pageControl, default is NO which means show pageControl. */@prope
2016-10-13 16:46:23
1355
原创 百度地图定位编码反编码
#import #import #import #import #import #define MYLOCATION @"mylocation"#define PROVINCES @"provinces"#define CITYNAME @"cityName"#define LOCATION @"location"typedef void(^updateStateBlock)(
2016-10-07 16:17:00
1341
原创 SDCycleScrollView 添加初始滚动页码
给 SDCycleScrollView.h文件中添加一个属性,默认开始的滚动页, @property(nonatomic,assign)NSUInteger firstIndex;//设置起始页 SDCycleScrollView.m中有一个 layoutSubviews方法,在该
2016-10-06 17:29:11
1757
原创 TTS
苹果官方提供过中文TTS支持,不过可惜的是并没有移植到OSX中。首先定义: NSSpeechSynthesizer *synth= [[NSSpeechSynthesizer alloc] init];阅读文本,只需要以下代码:NSString *text=@"hello, this is a test."; [synth startSpeakingString: text];
2016-10-06 17:27:53
453
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人