Git

Group description changed to "Về GIT:
- Tên branch: type/PG/task => type là kiểu (feature: chức năng mới, bugs: sửa bug; update: sửa lại, change chức năng đã có). PG là tên người làm. task là tên công việc.
- Mỗi task 1 branch, tạo merge request để review code. Ngoài ra cần đảm bảo build đc để còn reiview logic. Không làm nhiều task chung branch khó review.
- Commit liên tục để tránh mất code, hoặc có thể dễ revert nếu làm sai.
- Task to thì nên chia nhỏ, không nên làm xong mới review.

sd_webimage library Objective C

Add to BuildSetting
$(inherited)

Add pod (library) swift code to objective C project.

Remember:
@import FSPagerView;
#import "FSPagerView-Swift.h"
#import "PocketItem-Sim-Swift.h"

How to known what viewcontroller on simultor.

We will use "Debug memory graph" of xcode to know by the way:
Right click on quick view to known this view of object same the view on simulator, if right we will right click choose "Jump to denifiation" to go viewcontroller that we want edit.

How do I inspect the view hierarchy in iOS?

swift: po UIApplication.sharedApplication().keyWindow?.recursiveDescription()

objective c: po [[UIWindow keyWindow] recursiveDescription]

Could not download and install iOS Simulator. The network connection was lost.

run terminal:
sudo /Applications/Xcode.app/Contents/MacOS/Xcode

leak by timer in cell

ex:
should use :
[NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(onNext:) object:nil];
[self performSelector:@selector(onNext:) withObject:nil afterDelay:2];
for:
_nst_Timer = [NSTimer scheduledTimerWithTimeInterval: 2 target:self selector:@selector(onNext:) userInfo:nil repeats:YES];

qr2

QRCode

QR Data Japan

JAHISTC03,1
1,ランテスト,1,19960406,,,,,,,
2,1,乳製品,1
2,1,花粉症,2
2,2,副作用歴,2
2,2,なし,2
2,3,なし,2
2,9,なし,2
3,バファリン,,,2
4,健康診断,,2
5,20170409,1
11,テスト薬局,,,,,,,1
51,ストレスケアテスト2,,,,1
55,岡本テスト,,1
201,1,クアゼパム錠15mg「サワイ」,1,錠,2,620008005,1
201,1,ヒダントールD配合錠,1,錠,2,620067001,1
301,1,1日3回毎食間,4,日分,1,99,xxxxxxxxxxxxxxxx,1
391,1,めまい等が現れることがあるので車の運転や高所作業等に注意してください。,1
201,2,グラマリール錠50mg,3,錠,2,611190027,1
201,2,ルーラン錠8mg,2,錠,2,620006170,1
301,2,1日2回朝・夕食後,4,日分,1,1,,1
401,他の薬を併用する際は、相談してください。,1

Pages

Subscribe to Trần Mạnh Hoàng RSS