• 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30

UIView のインスタンスの tag に値を設定した後、removeFromSuperview すると値は 0 にリセットされる(;;)

posted by Face Saturn on Mon 28 Apr 2014 at 20:23

ユーザーが設定でロケーションの設定をいぢると、

didFailWithError

が呼ばれる。Grant したときでさえも code = 0 で呼ばれる!

ユーザーが設定でロケーションの許可を与えなかったとき、だからといってstopUptatingLocation を呼んでしまうと、その後許可を与えたことがわからなくなる。ネットの例はこれが多いので注意。

   1  -	(void)
   2  locationManager:(CLLocationManager*)pLM
   3  didFailWithError:(NSError*)pError
   4  {	assert( [ pError.domain isEqual:kCLErrorDomain ] );
   5  	switch ( pError.code )
   6  	{
   7  	case  0:	//	User grant permission to access Location.
   8  		break;
   9  	case  1:	//	User change permittion to access Location to disabled, needs to uLocation be nil.
  10  	default:	//	But don't stop update location, you can't come back when user granted permission to access Location.
  11  		uLocation = nil;
  12  		break;
  13  	}
  14  }

posted by Face Saturn on Mon 14 Apr 2014 at 17:44

I recommend to use SoundFlower, the great audio routing program.

When using modules in AVFoundation, sound environment needs to be configured properly both input and output. But MacPro2013 doesn't have internal microphone so it cannot be configured properly and when playing sound with AVAudioPlayer, errors like below will appear in console.

   1  2014-04-09 11:50:47.717 XXXX[2897:60b] 11:50:47.717 ERROR:     398: error -66680
   2  2014-04-09 11:50:47.717 XXXX[2897:60b] 11:50:47.717 ERROR:     398: error -66680
   3  2014-04-09 11:50:47.717 XXXX[2897:60b] 11:50:47.717 ERROR:     >aq> 1605: failed (-66680); will stop (11025/0 frames)
   4  

Because I don't have any microphones around me, I cannot plug it into my MacPro. I don't like to plug my earphone instead of plugging microphone. There was another choice. Soundflower, the great software for routing audio. Installing this software and selecting SoundFlower(2ch) in Setting/Sound/Input solved this problem.

posted by Face Saturn on Wed 9 Apr 2014 at 12:25

カリスマトリマーの友達がドメインをエクスパイアしちゃったからとヘルプ依頼。

一週間前から HP が見えなくなっているらしい。

他人に依頼していたので、コンタクト情報なし、リセーラーもわからない。

whois で見ると、レジストラはメルボルンIT。あれ、ここよく見るな。

連絡先のアドレスがなんと、XXXX@hotmail.com、これじゃ連絡こないわな(笑)

というわけでメルボルンIT の HP に行ってドメインを検索すると、小さく Renew のリンクが。

飛んでみると復活できそう。

メアドをなんとかしなくちゃいけないので相談しなくちゃ、と思いサポートコミュニティを見ると、Renewal の相談の嵐。

エクスパイアさせちゃうのは世界的なブームなのか(笑)というわけで早速投稿、朝一で返事がきた。

http://community.melbourneit.com.au/t5/Domain-Hosting/Domain-Renewal/m-p/11241

こういうサポートはほんとにありがたい。で、

https://www.melbourneit.com.au/document.php?handle=regkeyrecovery

このページからフォームをダウンロードして、ファックスかメールすればいいらしい。

あと、証人も用意する必要があるようだ。今夜に続く。。。かも

4/12 無事解決、よかった!。http://www.soup-spoon.com

posted by Face Saturn on Tue 8 Apr 2014 at 13:19

With optimization level other than NONE,

[ UINib nibWithNibName:... ]

and

[ NSBundle.mainBundle loadNibNamed:... ]

return nil when custom view class is instantiated only in the nib file.

In this case, there needs to be dummy instantiation code somewhere reachable or compile with optimization level NONE.

ugly...

posted by Face Saturn on Tue 8 Apr 2014 at 05:57

設定ー>プライバシーー>連絡帳ー>リクエストしたアプリ

で変更できる。変更すると、リクエストしたアプリは SIGKILL で殺される。 不許可方向は当然だが、なんと許可方向でも殺される。 なので、アプリ内でフォアにきたとき

   1  ABAddressBookRequestAccessWithCompletion
   2  
で再リクエストするようなコードは意味がない。アプリの起動時のみでいい。

posted by Face Saturn on Mon 7 Apr 2014 at 18:38
Contents
UIView の tag property
UILocationManager
AVAudioPlayer doesn't sound on Simulator.(MacPro 2013)
ドメインの復活@メルボルンIT
Zero Link : nibWithNibName and loadNibNamed returns nil with optimization.
AddressBook の grant @iOS7
Services from s21g
twpro(ツイプロ)
Twitterプロフィールを快適検索
地価2009
土地の値段を調べてみよう
MyRestaurant
自分だけのレストラン手帳
Formula
ブログに数式を埋め込める数式コミュニティ