Bought Violin

20160123114129.jpgFinally I bought Violin. At the beginning of this year, 2 weeks ago, I bought cheaper silent violin set on Amazon.co.jp. Needless to say, sound and feeling to play is totally different from it. Still my technic is so beginner. I have recognized that many efforts to master with it is needed. But I’m enjoying to practice this, and leaving my developing iOS Application….

As another point of view, I spent money for hobby in this month, saving in next month will be required…..

Keyboard for iPad mini 4

imageI bought Bluetooth keyboard for iPad mini 4 to make more comfortable mobile life. The product name is “BooKey Pro“. It is the thinnest keyboard among the available accessories for iPad. Getting used to use this, but I can’t comment for this so far.

One thing is it’s totally different usability compared with MacBook Air, needless to say. It’s not enough OS operation function by Keyboard. I guess it’s caused by iOS, not this product. Any similar product doesn’t have such kind of expected function. I nee to understand these characteristics.

 

 Let me update some feedback here later.

New Challenge

From this year, as new challenge and new hobby for me, I started to study playing Violin. This is first time to play it. Not only this, I have not ever played any instruments. And looked over some article about late starter for violin. There are some negative comment like the person can’t become player who started at child. Technically it’s not easy to catch up the huge gap caused by accumulated past time. And children are more flexible than adult. It’s undeniable fact. It might be too late to start. But I believe there are some way to close to such kind of person.

New Year Holiday

These new years days in japan, it was warmer than usual. 3rd’s maximum temperature was 16 ℃ in tokyo as warm as spring. I almost stayed in my house since I have a cold from end of previous year, still remaining some symptoms, but gradually getting better.

Today, One of TV programs “U18 ぼくらの未来” (Younger’s future) picked up development summer workshop for high school students in japan which was hosted by Rhizomatiks Research, in that workshop, all attendees  concentrated on to develop original application to solve social issue like “Food” and “Communication” by theirselves under Rhizomatiks Research’s support, while summer vacation. One person spent 16 hour to write code per day.

About Rhizomatiks Research

I was shocked to watch the program because many younger who attended to it can develop application as well as independent developer can do. I felt huge gap between their and our generation. One of the reason is different environment regarding the technology. They might be most talented person in their generation, that’s why they could attend to it. Although, as fact, they looks be able to flight with normal developer in the office and will easily be beyond current generation who is devoting on Japanese IT industry. I need to recognize this fact in advance. 

As I sometime posted here, my iOS App Dev was proceeded with getting knowledge, but feeling it’s very slow and don’t have advanced one and new value for the world. I need to change objective to learning dev language from creating new value by development. I believe it’s not too late to start it at this time. But many efforts will be required. From tomorrow 4th Jan, most company will start to work. The key must be how to spend all time what we have. 

Custom UITableViewCell without Storyboard

I was looking for the way to make List function based on UITableView be directly editable text field. UITableView also offer editable by swipe function. But I wanted to make function to directly edit lists on UITableView. To make sure that, Custom UITableViewCell is needed, if without StoryBoard. Btw I prefer to generate content without using StoryBoard, it means my application completely depends on source code. 

Step 1: To make new class “CustomTableViewCell” by inheriting “UITableViewCell”.

class CustomTableViewCell: UITableViewCell{
    
    let TitleArea: UITextField = UITextField(frame: CGRect(x: 30, y: 5, width: 350, height: 25))
    
    override init(style: UITableViewCellStyle, reuseIdentifier: String!)
    {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        TitleArea.delegate = self
        contentView.addSubview(TitleArea)
    }
    
    override func setSelected(selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
    }
    
    required init(coder aDecoder: NSCoder)
    {
        super.init(coder: aDecoder)!
    }    
}

and to implement this custom class without StoryBoard, most important thing is to define it on “TableView.registerClass” and “return value of UITableViewCell. Please refer below highlited line in sample source code.

class CustomViewController: UIViewController, UITableViewDataSource, UITableViewDelegate {
    
    var CusotmTableView: UITableView = UITableView()
	
    override func viewDidLoad() {
        super.viewDidLoad()
            
        // Get width and height of view.
        let displayWidth: CGFloat = self.view.frame.width
        let displayHeight: CGFloat = self.view.frame.height
        
        // Generate TableView
        CusotmTableView.frame = CGRect(x: 0, y: barHeight+30, width: displayWidth, height: displayHeight  )
        
        // [Important] To designate Custom UITableViewcells as UITableViewCell
        CusotmTableView.registerClass(CustomTableViewCell.self, forCellReuseIdentifier: "MyCell")
        
	CusotmTableView.dataSource = self
        CusotmTableView.delegate = self
        
        self.view.addSubview(CusotmTableView)
        

    }
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()

    }
	
    func numberOfSectionsInTableView(tableView: UITableView) -> Int {
        return ******
    }
    
    func tableView(tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
        return "title"
    }
    
    func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return section
    }
    
    func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        
        //CustomCell
        let cell:  CustomTableViewCell = tableView.dequeueReusableCellWithIdentifier("MyCell", forIndexPath: indexPath) as! CustomTableCell
        cell.delegate = self
        
        return cell
    }
   
}

If you want to generate Custom UITableViewCell by source code without StoryBorder, Please make sure these two points.