Tutorials

Text Kit 教程(二)

Text Kit 教程(二)

If you’re new here, you may want to subscribe to my RSS feed or follow me on Twitter. Thanks for visiting!接下来,将已有的applyStylesToRange方法用以下代码替换: – (void)applyStylesToRange:(NSRange)searchRange { NSDictionary* normalAttrs = @{NSFontAttributeName: [UIFont preferredFontForTextStyle:UIFontTextStyleBody]}; // iterate over each replacement for (NSString* key in _replacements) { NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:key options:0 error:nil]; NSDictionary* attributes = _replacements[key]; [regex enumerateMatchesInString:[_backingStore string] […]

Cosmin Pupaza Cosmin Pupaza
如何在应用中通过邮件输入和输出数据

如何在应用中通过邮件输入和输出数据

很多开发者都希望能够通过电子邮件分享他们的应用数据。这对用户用户之间以及设备之间的数据传输来说是一个很方便的方法--它甚至可以为你带来一些新的用户。 幸运的是,在iPhone应用开发里这是很容易实现的 -- 你只需要在Info.plist里设置几个key,并且处理几个回传函数使控制系统可以通过URL引入数据来开启应用。 我们将会在这篇教程里讲解这些是如何实现的。 我们将会由the Scary Bugs项目开始讲解。我们在简单应用教程中开始了这个项目,并且在文件分享教程中对它进行了更新。 如果你还没有这个项目,可以在这里下载。

Ray Wenderlich
Page 1 of 8« PreviousLast »

Other Items of Interest

Ray 的每月简报

Sign up to receive a monthly newsletter with my favorite dev links, and receive a free epic-length tutorial as a bonus!

Advertise with Us!

Hang Out With Us!

Every month, we have a free live Tech Talk - come hang out with us!


Coming up in September: iOS 8 App Extensions!

Sign Up - September

RWDevCon Conference?

We are considering having an official raywenderlich.com conference called RWDevCon in DC in early 2015.

The conference would be focused on high quality Swift/iOS 8 technical content, and connecting as a community.

Would this be something you'd be interested in?

    加载中 ... 加载中 ...

我们的书

Our Team

教程组

  • Jean-Pierre Distler
  • Charlie Fulton

... 49 total!

Update Team

  • Andy Pereira

Editorial Team

... 23 total!

Code Team

  • Orta Therox

... 1 total!

翻译团队

  • Marina Mukhina
  • Cosmin Pupaza
  • Myeong Hoon

... 33 total!

Subject Matter Experts

  • Richard Casey

... 4 total!