{"action":"opened","issue":{"url":"https://api.github.com/repos/ortuman/SwiftForms/issues/72","labels_url":"https://api.github.com/repos/ortuman/SwiftForms/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/ortuman/SwiftForms/issues/72/comments","events_url":"https://api.github.com/repos/ortuman/SwiftForms/issues/72/events","html_url":"https://github.com/ortuman/SwiftForms/issues/72","id":111103017,"number":72,"title":"Seems a bug for FormViewController.swift (swift 1.2, SwiftForms 1.0)","user":{"login":"jacobzeng","id":3947019,"avatar_url":"https://avatars.githubusercontent.com/u/3947019?v=3","gravatar_id":"","url":"https://api.github.com/users/jacobzeng","html_url":"https://github.com/jacobzeng","followers_url":"https://api.github.com/users/jacobzeng/followers","following_url":"https://api.github.com/users/jacobzeng/following{/other_user}","gists_url":"https://api.github.com/users/jacobzeng/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobzeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobzeng/subscriptions","organizations_url":"https://api.github.com/users/jacobzeng/orgs","repos_url":"https://api.github.com/users/jacobzeng/repos","events_url":"https://api.github.com/users/jacobzeng/events{/privacy}","received_events_url":"https://api.github.com/users/jacobzeng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-13T04:40:10Z","updated_at":"2015-10-13T04:40:10Z","closed_at":null,"body":"should rest rowIndex = 0 once each section done\r\n```\r\n   public func setValue(value: NSObject, forTag tag: String) {\r\n        \r\n        var sectionIndex = 0\r\n        var rowIndex = 0\r\n        \r\n        for section in form.sections {\r\n            for row in section.rows {\r\n                if row.tag == tag {\r\n                    row.value = value\r\n                    if let cell = self.tableView.cellForRowAtIndexPath(NSIndexPath(forRow: rowIndex, inSection: sectionIndex)) as? FormBaseCell {\r\n                        cell.update()\r\n                    }\r\n                    return\r\n                }\r\n                ++rowIndex\r\n            }\r\n            rowIndex = 0\r\n            ++sectionIndex\r\n        }\r\n    }\r\n```"}}