今天看啥
热点:

注意要引入AudioToolbox.framework。在iOS6,iOS7上测试通过。

private api有风险,注意不要在上架app中使用。

 NSMutableDictionary* dict = NSMutableArray* arr = 
 [arr addObject:[NSNumber numberWithBool:YES]]; 
 [arr addObject:[NSNumber numberWithInt: 
 
 [dict setObject:arr forKey: [dict setObject:[NSNumber numberWithFloat:] forKey: 
 AudioServicesPlaySystemSoundWithVibration(,nil,_buff);

 





.h

 
   
    
  <Foundation/Foundation.h>
 
  + (YANGZVibePattern *)PatternWithIntensity:( @property (nonatomic)  @property (nonatomic)   
 
 
  
 
 - (YANGZShaking *)initWithPattern:(NSArray * - (YANGZShaking *)initWithFile:(NSString * - (YANGZShaking * - ( - ( 
 

 

.m

 
   
    
 
  
  <AudioToolbox/AudioToolbox.h>
 
 
  + (YANGZVibePattern *)PatternWithIntensity:(     YANGZVibePattern *pattern = [YANGZVibePattern      pattern.isV =     pattern.intensity =     pattern.time =       
 
 
      NSArray *     NSMutableDictionary *       
 
 
  
 
 - (YANGZShaking *)initWithPattern:(NSArray *              _patterns =         _buff=         _isRepeat=    
 
 - (YANGZShaking *)initWithFile:(NSString *              _patterns =         _buff=         _isRepeat=    - (YANGZShaking *              YANGZVibePattern *vibePattern = [YANGZVibePattern PatternWithIntensity:         YANGZVibePattern *pausePattern = [YANGZVibePattern PatternWithIntensity: 
         _patterns =         _buff=         _isRepeat=   
 
  - (   - ( 
  
 
 - (     NSUInteger i=              NSUInteger pause =          YANGZVibePattern *pattern =          (!                      [NSThread sleepForTimeInterval:pattern.time*/         i++          (i==[_patterns count] && !                       i=i%   - ()prepareBuffWithPattern:(YANGZVibePattern *     NSMutableDictionary* dict =     NSMutableArray* arr = 
     [arr addObject:[NSNumber numberWithBool:YES]]; 
  
 
 
     [dict setObject:arr forKey:     [dict setObject:[NSNumber numberWithFloat:pattern.intensity] forKey:     _buff =  - (     NSLog( 
     AudioServicesPlaySystemSoundWithVibration(  

www.bkjia.comtruehttp://www.bkjia.com/IOSjc/730659.htmlTechArticle注意要引入AudioToolbox.framework。在iOS6,iOS7上测试通过。 private api有风险,注意不要在上架app中使用。 NSMutableDictionary* dict = NSMutableArray* arr...

相关文章

相关搜索: aspnet 软件编程

帮客评论

视觉看点